Mercurial > genshi > genshi-test
diff markup/template.py @ 184:e27a48802987
Interpolate multiline expressions in templates. Thanks to Christian Boos for reporting the problem and providing the fix.
author | cmlenz |
---|---|
date | Tue, 22 Aug 2006 13:16:09 +0000 |
parents | 41db0260ebb1 |
children | 8e5a3048b359 |
line wrap: on
line diff
--- a/markup/template.py +++ b/markup/template.py @@ -825,7 +825,7 @@ self.stream = stream - _FULL_EXPR_RE = re.compile(r'(?<!\$)\$\{(.+?)\}') + _FULL_EXPR_RE = re.compile(r'(?<!\$)\$\{(.+?)\}', re.DOTALL) _SHORT_EXPR_RE = re.compile(r'(?<!\$)\$([a-zA-Z][a-zA-Z0-9_\.]*)') def _interpolate(cls, text, filename=None, lineno=-1, offset=-1):