# HG changeset patch # User Paul Boddie # Date 1354549024 -3600 # Node ID 9c363e2c0b20e86c8d5fafab26f2c593d338671c # Parent 4ac484b4fb22e401a5a5e7930cd44452953198a2 Made "-" a word character and not a separator in region attribute parsing. diff -r 4ac484b4fb22 -r 9c363e2c0b20 MoinSupport.py --- a/MoinSupport.py Sat Dec 01 23:29:40 2012 +0100 +++ b/MoinSupport.py Mon Dec 03 16:37:04 2012 +0100 @@ -372,8 +372,10 @@ f = StringIO(s) name = None need_value = False + lex = shlex(f) + lex.wordchars += "-" - for token in shlex(f): + for token in lex: # Capture the name if needed. diff -r 4ac484b4fb22 -r 9c363e2c0b20 README.txt --- a/README.txt Sat Dec 01 23:29:40 2012 +0100 +++ b/README.txt Mon Dec 03 16:37:04 2012 +0100 @@ -68,6 +68,8 @@ * Added section argument processing functions from the ImprovedTableParser distribution to MoinSupport. * Added region/section parsing functions to MoinSupport. + * Changed region/section argument/attribute parsing to consider "-" (dash) + as a word character and not a separator. * Added heading extraction functionality from ImprovedMoinSearch. * Added parsing/formatting-related functions from EventAggregator and ImprovedTableParser to MoinSupport.