force string-values
This commit is contained in:
parent
5cbaeea453
commit
861f4c0546
1 changed files with 2 additions and 2 deletions
|
@ -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') )
|
||||
|
|
Loading…
Add table
Reference in a new issue