From b2b7d04d3badfe4b66a52e3e2ce4b49981a12e16 Mon Sep 17 00:00:00 2001 From: alvinpenner Date: Sat, 11 Jul 2009 00:24:49 +0000 Subject: [PATCH] patch by hefee for LP bug 397793 --- share/extensions/dxf_input.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(): -- 2.30.2