Pārlūkot izejas kodu

wxGUI: don't add new line if not necessary

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32471 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 gadi atpakaļ
vecāks
revīzija
ee67a4052c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      gui/wxpython/gui_modules/goutput.py

+ 2 - 1
gui/wxpython/gui_modules/goutput.py

@@ -692,7 +692,8 @@ class GMStc(wx.stc.StyledTextCtrl):
         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