diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
| commit | ef45f4b7406ec0d7457ea9a6e879007f37dc64f8 (patch) | |
| tree | 9145e4ef427ba89bc58eacd0e8709482efc5cb96 /lib/extensions/base.py | |
| parent | 8f3c922011a5c39a6154863160ea8354a502ed42 (diff) | |
| parent | 3cfda3c0b949bd4ba1f00a99f285b029dcc975ee (diff) | |
Merge branch 'master' into lexelby/bugs
Diffstat (limited to 'lib/extensions/base.py')
| -rw-r--r-- | lib/extensions/base.py | 11 |
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()) |
