diff MoinMoin/script/migration/_conv160_wiki.py @ 2749:ef2268e5f605

1.6 converter: fix pre scan rules
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 22 Aug 2007 09:31:31 +0200
parents bb686d95f113
children 7f6093028a66
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160_wiki.py	Tue Aug 21 23:34:20 2007 +0200
+++ b/MoinMoin/script/migration/_conv160_wiki.py	Wed Aug 22 09:31:31 2007 +0200
@@ -379,8 +379,8 @@
                 'word_rule': self.word_rule,
                 'rules': rules,
             }
-        #pre_rules = self.pre_formatting_rules.replace('\n', '|')
-        #pre_scan_re = re.compile(pre_rules, re.UNICODE)
+        pre_rules = r'''(?P<pre>\}\}\})'''
+        pre_scan_re = re.compile(pre_rules, re.UNICODE)
         scan_re = re.compile(rules, re.UNICODE)
         eol_re = re.compile(r'\r?\n', re.UNICODE)