summaryrefslogtreecommitdiff
path: root/lib/extensions/base.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-12-15 20:21:41 -0500
committerGitHub <noreply@github.com>2018-12-15 20:21:41 -0500
commit1e0280db10cbb987842648f78f37bb9acc827305 (patch)
treeb3ddf36770535402ca9a2ae7af2d1e3d8bffae33 /lib/extensions/base.py
parent8389d792adfd4d43785d3850e0558f2b386c7266 (diff)
basic lettering GUI (#351)
Diffstat (limited to 'lib/extensions/base.py')
-rw-r--r--lib/extensions/base.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/extensions/base.py b/lib/extensions/base.py
index 279ca396..98673541 100644
--- a/lib/extensions/base.py
+++ b/lib/extensions/base.py
@@ -211,16 +211,15 @@ class InkstitchExtension(inkex.Effect):
# care that it's unique. That defines a "namespace" of element and
# attribute names to disambiguate conflicts with element and
# attribute names other XML namespaces.
- #
- # Updating inkex.NSS here allows us to pass 'inkstitch' into
- # inkex.addNS().
- inkex.NSS['inkstitch'] = 'http://inkstitch.org/namespace'
# call the superclass's method first
inkex.Effect.parse(self)
- # This is the only way I could find to add a namespace to an existing
- # element tree at the top without getting ugly prefixes like "ns0".
+ # Add the inkstitch namespace to the SVG. The inkstitch namespace is
+ # added to inkex.NSS in ../svg/tags.py at import time.
+
+ # The below is the only way I could find to add a namespace to an
+ # existing element tree at the top without getting ugly prefixes like "ns0".
inkex.etree.cleanup_namespaces(self.document,
top_nsmap=inkex.NSS,
keep_ns_prefixes=inkex.NSS.keys())