add xmlns attribute to svg output
This commit is contained in:
parent
62a9b28e4c
commit
b84e34002d
1 changed files with 1 additions and 1 deletions
2
svg.py
2
svg.py
|
@ -30,7 +30,7 @@ class Scene:
|
||||||
|
|
||||||
def svgstr(self):
|
def svgstr(self):
|
||||||
svgstr = "<?xml version=\"1.0\"?>\n"
|
svgstr = "<?xml version=\"1.0\"?>\n"
|
||||||
svgstr += "<svg width=\"%d\" height=\"%d\">\n"%self.size
|
svgstr += "<svg width=\"%d\" height=\"%d\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n"%self.size
|
||||||
svgstr += " <g style=\"fill-opacity:1.0; stroke:black; stroke-width:1;\">\n"
|
svgstr += " <g style=\"fill-opacity:1.0; stroke:black; stroke-width:1;\">\n"
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
svgstr += item.svgstr()
|
svgstr += item.svgstr()
|
||||||
|
|
Loading…
Reference in a new issue