[GRASS-SVN] r59923 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 24 03:35:25 PDT 2014


Author: martinl
Date: 2014-04-24 03:35:24 -0700 (Thu, 24 Apr 2014)
New Revision: 59923

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix copying command containing spaces
             (merge r59920 from trunk)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2014-04-24 10:34:11 UTC (rev 59922)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2014-04-24 10:35:24 UTC (rev 59923)
@@ -734,7 +734,7 @@
         # TODO: better protect whitespace with quotes
         for i in range(1, len(cmdlist)):
             if ' ' in cmdlist[i]:
-                optname, val =  cmdlist[i].split("=")
+                optname, val =  cmdlist[i].split("=", 1)
                 cmdlist[i] = '%s="%s"' % (optname, val)
         cmdstring = ' '.join(cmdlist)
         cmddata.SetText(cmdstring)



More information about the grass-commit mailing list