summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2009-07-11 00:24:49 +0000
committeralvinpenner <alvinpenner@users.sourceforge.net>2009-07-11 00:24:49 +0000
commitd10cb24df74cf2076891a1163877ad5ff3829a27 (patch)
tree565fc87b9707b16578ae19e3cc8c86682b30cd68
parentupdate (diff)
downloadinkscape-d10cb24df74cf2076891a1163877ad5ff3829a27.tar.gz
inkscape-d10cb24df74cf2076891a1163877ad5ff3829a27.zip
patch by hefee for LP bug 397793
(bzr r8253)
-rw-r--r--share/extensions/dxf_input.py3
1 files changed, 2 insertions, 1 deletions
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():