changeset 2046:1bdbf54a33ff

text_moin_wiki:bug fix of NoURLsAfterBlock
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 29 May 2007 17:00:54 +0200
parents b3ddb4504ec6
children 8ac1efc21728 b32f88c46f57
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	Tue May 29 16:34:59 2007 +0200
+++ b/MoinMoin/parser/text_moin_wiki.py	Tue May 29 17:00:54 2007 +0200
@@ -935,7 +935,10 @@
         if not (inhibit_p or self.in_pre or self.in_li or self.in_dd or self.inhibit_p or
                 self.formatter.in_p) and lastpos < len(line):
             result.append(self.formatter.paragraph(1, css_class="line874"))
-        result.append(self.formatter.text(line[lastpos:]))
+        if '}}}' in line and len(line[lastpos:].strip()) > 0:
+            result.append(wikiutil.renderText(self.request, Parser, line[lastpos:].strip()))
+        else:
+            result.append(self.formatter.text(line[lastpos:]))
         return u''.join(result)
 
     def replace(self, match, inhibit_p=False):