[GRASS-SVN] r59920 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 24 03:15:38 PDT 2014
Author: martinl
Date: 2014-04-24 03:15:37 -0700 (Thu, 24 Apr 2014)
New Revision: 59920
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix copying command containing spaces
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2014-04-24 10:01:44 UTC (rev 59919)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2014-04-24 10:15:37 UTC (rev 59920)
@@ -735,7 +735,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