Changeset 53:b5e24837a3ba

Show
Ignore:
Timestamp:
08/13/08 07:33:03 (2 years ago)
Author:
Nicolas ?vrard <nicoe@…>
Branch:
default
Message:

Use whitespace class from python in regexp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • relatorio/templates/opendocument.py

    r50 r53  
    3636from genshi.template import MarkupTemplate 
    3737 
    38 GENSHI_EXPR = re.compile(r'''((/)?(for|choose|otherwise|when|if|with) *( (\w+)=["'](.*)["']|$)|.*)''') 
     38GENSHI_EXPR = re.compile(r'''((/)?(for|choose|otherwise|when|if|with)\s*(\s(\w+)=["'](.*)["']|$)|.*)''') 
    3939EXTENSIONS = {'image/png': 'png', 
    4040              'image/jpeg': 'jpg',