changeset 2768:d1a1f10a0451

po files: also find macros that are split at EOL
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 26 Aug 2007 14:14:54 +0200
parents 95a97b45a8e9
children ca030ceec18f 1134a5cc12c2
files MoinMoin/i18n/tools/markup15to16.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/tools/markup15to16.py	Sun Aug 26 13:52:35 2007 +0200
+++ b/MoinMoin/i18n/tools/markup15to16.py	Sun Aug 26 14:14:54 2007 +0200
@@ -21,7 +21,7 @@
     # replace [[Macro(...)]] by <<Macro(...)>>
     macro_rule = r"\[\[(?P<macro>.*?)\]\]"
     macro_repl = r"<<\g<macro>>>"
-    macro_re = re.compile(macro_rule, re.U)
+    macro_re = re.compile(macro_rule, re.U|re.M|re.S)
     text = macro_re.sub(macro_repl, text)
 
     #print repr(text)