summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0657ec)
raw | patch | inline | side by side (parent: c0657ec)
author | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 11 Jul 2009 00:24:49 +0000 (00:24 +0000) | ||
committer | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 11 Jul 2009 00:24:49 +0000 (00:24 +0000) |
share/extensions/dxf_input.py | patch | blob | history |
index 20c7757ddc99e6560c03ad250f70c45b713c31af..fcf5125afe8b13b988aa717ed9bdc84a9768a22b 100644 (file)
import inkex, simplestyle, math
from StringIO import StringIO
+from urllib import quote
def export_MTEXT():
# mandatory group codes : (1 or 3, 10, 20) (text, x, y)
if vals[groups['2']] and vals[groups['10']] and vals[groups['20']]:
x = vals[groups['10']][0]
y = vals[groups['20']][0] - scale*ymax
- attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS('href','xlink'): '#' + vals[groups['2']][0]}
+ attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS('href','xlink'): '#' + quote(vals[groups['2']][0].encode("utf-8"))}
inkex.etree.SubElement(layer, 'use', attribs)
def export_BLOCK():