Skip to content

Commit

Permalink
fix up e0869aa to support implicitly translating text containing newl…
Browse files Browse the repository at this point in the history
…ines
  • Loading branch information
witsch committed Apr 9, 2013
1 parent e0869aa commit 78b6e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chameleon/zpt/program.py
Expand Up @@ -603,7 +603,7 @@ def visit_text(self, node):
if not translation:
return nodes.Text(node)

match = re.search(r'(\s*)(.*\S)(\s*)', node)
match = re.search(r'(\s*)(.*\S)(\s*)', node, flags=re.DOTALL)
if match is not None:
prefix, text, suffix = match.groups()
normalized = re.sub('\s+', ' ', text)
Expand Down

0 comments on commit 78b6e2f

Please sign in to comment.