changeset 1641:39ca0331843f

GUI editor formatter: use the formatter for comment texts (ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 24 Oct 2006 02:36:43 +0200
parents 6478c7744221
children eddb24012ed2
files MoinMoin/formatter/text_gedit.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_gedit.py	Mon Oct 23 02:52:24 2006 +0200
+++ b/MoinMoin/formatter/text_gedit.py	Tue Oct 24 02:36:43 2006 +0200
@@ -186,7 +186,7 @@
 
     def comment(self, text, **kw):
         text = text.rstrip() # workaround for growing amount of blanks at EOL
-        return self.preformatted(1, css_class='comment') + text + self.preformatted(0)
+        return self.preformatted(1, css_class='comment') + self.text(text) + self.preformatted(0)
 
     def strong(self, on, **kw):
         tag = 'b'