git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32471 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -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