changeset 20:329b6aaf3118

fix for growing amounts of space before EOL in comments when using gui editor imported from: moin--main--1.5--patch-21
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 24 Sep 2005 12:27:42 +0000
parents 6772e845059d
children 5109effab437
files MoinMoin/formatter/text_gedit.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_gedit.py	Sat Sep 24 12:13:32 2005 +0000
+++ b/MoinMoin/formatter/text_gedit.py	Sat Sep 24 12:27:42 2005 +0000
@@ -204,6 +204,7 @@
         return ''.join(result)    
 
     def comment(self, text):
+        text = text.rstrip() # workaround for growing amount of blanks at EOL
         return self.preformatted(1, attr={'class': 'comment'}) + text + self.preformatted(0)
 
     def underline(self, on):