From: acspike Date: Fri, 25 Jan 2008 19:43:24 +0000 (+0000) Subject: Never add two namespaces X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c069fe72cec018ee424660ae6f4f891cb98a5217;p=inkscape.git Never add two namespaces possible fix for [Bug 179770] --- diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 5f12c8917..d5c1ce213 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -72,7 +72,7 @@ def check_inkbool(option, opt, value): def addNS(tag, ns=None): val = tag - if ns!=None and len(ns)>0 and NSS.has_key(ns): + if ns!=None and len(ns)>0 and NSS.has_key(ns) and len(tag)>0 and tag[0]!='{': val = "{%s}%s" % (NSS[ns], tag) return val