Przeglądaj źródła

wxGUI/modeler: encode model properties (desc and user)
(merge https://trac.osgeo.org/grass/changeset/48908 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48909 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 13 lat temu
rodzic
commit
19df684efc
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      gui/wxpython/gui_modules/gmodeler.py

+ 4 - 2
gui/wxpython/gui_modules/gmodeler.py

@@ -3111,9 +3111,11 @@ class WriteModelFile:
         if self.properties['name']:
             self.fd.write('%s<name>%s</name>\n' % (' ' * self.indent, self.properties['name']))
         if self.properties['description']:
-            self.fd.write('%s<description>%s</description>\n' % (' ' * self.indent, self.properties['description']))
+            self.fd.write('%s<description>%s</description>\n' % (' ' * self.indent,
+                                                                 utils.EncodeString(self.properties['description'])))
         if self.properties['author']:
-            self.fd.write('%s<author>%s</author>\n' % (' ' * self.indent, self.properties['author']))
+            self.fd.write('%s<author>%s</author>\n' % (' ' * self.indent,
+                                                       utils.EncodeString(self.properties['author'])))
         
         if 'overwrite' in self.properties and \
                 self.properties['overwrite']: