[GRASS-SVN] r32471 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 2 18:39:16 EDT 2008
Author: martinl
Date: 2008-08-02 18:39:15 -0400 (Sat, 02 Aug 2008)
New Revision: 32471
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: don't add new line if not necessary
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-08-02 22:23:30 UTC (rev 32470)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-08-02 22:39:15 UTC (rev 32471)
@@ -692,7 +692,8 @@
if wrap:
txt = textwrap.fill(txt, wrap) + os.linesep
else:
- txt += os.linesep
+ if txt[-1] != os.linesep:
+ txt += os.linesep
if '\r' in txt:
self.parent.linePos = -1
More information about the grass-commit
mailing list