Browse Source

wxGUI/forms: fix copying command containing spaces

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59920 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
6612e7f771
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -735,7 +735,7 @@ class TaskFrame(wx.Frame):
         # 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)