projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaf493e
)
added jinja unicode whitespace handling
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 7 Oct 2007 16:53:29 +0000
(18:53 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 7 Oct 2007 16:53:29 +0000
(18:53 +0200)
--HG--
branch : trunk
jinja/lexer.py
patch
|
blob
|
history
diff --git
a/jinja/lexer.py
b/jinja/lexer.py
index 18b74849f8a3751868a9c49b5b5158c4de45d72c..3fb3aa043b0221806c4a6f4875d553a55fdbe549 100644
(file)
--- a/
jinja/lexer.py
+++ b/
jinja/lexer.py
@@
-39,7
+39,7
@@
_lexer_cache = WeakValueDictionary()
# static regular expressions
-whitespace_re = re.compile(r'\s+(?m)')
+whitespace_re = re.compile(r'\s+(?
u
m)')
name_re = re.compile(r'[a-zA-Z_][a-zA-Z0-9_]*')
string_re = re.compile(r"('([^'\\]*(?:\\.[^'\\]*)*)'"
r'|"([^"\\]*(?:\\.[^"\\]*)*)")(?ms)')