Skip to content

Commit e086af3

Browse files
author
gsherman
committed
Quoted names and classes where appropriate
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@7005 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ce161d0 commit e086af3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/mapserver_export/ms_export.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def writeMapSection(self):
9696
self.outFile.write("# Map file created from QGIS project file " + self.project + "\n")
9797
self.outFile.write("# Edit this file to customize for your map interface\n")
9898
self.outFile.write("MAP\n")
99-
self.outFile.write(" NAME " + self.mapName + "\n")
99+
self.outFile.write(" NAME '" + self.mapName + "'\n")
100100
self.outFile.write(" # Map image size\n")
101101
self.outFile.write(" SIZE " + self.width + " " + self.height + "\n")
102102
self.outFile.write(" UNITS " + self.units.lower() + "\n")
@@ -364,9 +364,9 @@ def simpleRenderer(self, layerNode, symbolNode):
364364

365365
self.outFile.write(" CLASS\n")
366366

367-
self.outFile.write(" NAME "
367+
self.outFile.write(" NAME '"
368368
+ layerNode.getElementsByTagName("layername")[0].childNodes[0].nodeValue.encode('utf-8')
369-
+ " \n")
369+
+ "'\n")
370370

371371
self.outFile.write(" STYLE\n")
372372
# use the point symbol map to lookup the mapserver symbol type

0 commit comments

Comments
 (0)