Changeset 53:b5e24837a3ba
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r50
|
r53
|
|
| 36 | 36 | from genshi.template import MarkupTemplate |
| 37 | 37 | |
| 38 | | GENSHI_EXPR = re.compile(r'''((/)?(for|choose|otherwise|when|if|with) *( (\w+)=["'](.*)["']|$)|.*)''') |
| | 38 | GENSHI_EXPR = re.compile(r'''((/)?(for|choose|otherwise|when|if|with)\s*(\s(\w+)=["'](.*)["']|$)|.*)''') |
| 39 | 39 | EXTENSIONS = {'image/png': 'png', |
| 40 | 40 | 'image/jpeg': 'jpg', |