changeset 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 d28a4f5d0003
children f12b39c07405
files MoinMoin/script/migration/_conv160_wiki.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)