From: alvinpenner Date: Sat, 11 Jul 2009 00:24:49 +0000 (+0000) Subject: patch by hefee for LP bug 397793 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b2b7d04d3badfe4b66a52e3e2ce4b49981a12e16;p=inkscape.git patch by hefee for LP bug 397793 --- diff --git a/share/extensions/dxf_input.py b/share/extensions/dxf_input.py index 20c7757dd..fcf5125af 100644 --- a/share/extensions/dxf_input.py +++ b/share/extensions/dxf_input.py @@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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) @@ -238,7 +239,7 @@ def export_INSERT(): 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():