diff MoinMoin/script/migration/_conv160a_wiki.py @ 4636:83483f4e26cb

merged moin/1.8
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Mar 2009 22:38:00 +0100
parents 3caaa8c74c41 b0319cfcb1bc
children 10965bc1ee3c
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160a_wiki.py	Sat Mar 07 19:42:10 2009 +0100
+++ b/MoinMoin/script/migration/_conv160a_wiki.py	Sat Mar 07 22:38:00 2009 +0100
@@ -414,16 +414,16 @@
             else:
                 return '[[%s|%s]]' % (target, text)
 
+    def _parser_repl(self, word):
+        self.in_pre = 'no_parser'
+        return word
+
     def _pre_repl(self, word):
         w = word.strip()
         if w == '{{{' and not self.in_pre:
-            self.in_pre = True
+            self.in_pre = 'no_parser'
         elif w == '}}}' and self.in_pre:
-            self.in_pre = False
-        return word
-
-    def _processor_repl(self, word):
-        self.in_pre = True
+            self.in_pre = None
         return word
 
     def scan(self, scan_re, line):