force string-values

This commit is contained in:
MaZderMind 2014-11-05 12:24:38 +01:00
parent 5cbaeea453
commit 861f4c0546

View file

@ -120,10 +120,10 @@ def rendertask(task):
el.attrib['style'] = style.cssText
elif type == 'attr':
el.attrib[key] = value
el.attrib[key] = str(value)
elif type == 'text':
el.text = value
el.text = str(value)
# write the generated svg-text into the output-file
fp.write( etree.tostring(svg, encoding='unicode') )