changeset 2257:6327a199c666

text_moin_wiki:fixed bug for Colorized parsers and nesting {{{ }}} (FeatureRequests/ParsersCanNotContain{{{}}}) , should be added to 1.6 too
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 24 Jun 2007 21:27:09 +0200
parents 691b6a650d94
children 9c66c14f6b62
files MoinMoin/parser/text_moin_wiki.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_moin_wiki.py	Sun Jun 24 21:26:24 2007 +0200
+++ b/MoinMoin/parser/text_moin_wiki.py	Sun Jun 24 21:27:09 2007 +0200
@@ -1055,7 +1055,10 @@
                 if self.in_pre == 'found_parser':
                     # processing mode
                     try:
-                        endpos = line.index("}}}")
+                        if line.endswith("}}}"):
+                            endpos = len(line) - 3
+                        else:
+                            endpos = line.index("}}}")
                     except ValueError:
                         self.parser_lines.append(line)
                         continue