kopia lustrzana https://github.com/inkstitch/inkstitch
fix print pdf when svg contains comments (#939)
rodzic
13ce739e77
commit
41c25ffe14
|
@ -194,7 +194,7 @@ class Print(InkstitchExtension):
|
||||||
def strip_namespaces(self, svg):
|
def strip_namespaces(self, svg):
|
||||||
# namespace prefixes seem to trip up HTML, so get rid of them
|
# namespace prefixes seem to trip up HTML, so get rid of them
|
||||||
for element in svg.iter():
|
for element in svg.iter():
|
||||||
if element.tag[0] == '{':
|
if type(element.tag) == str and element.tag[0] == '{':
|
||||||
element.tag = element.tag[element.tag.index('}', 1) + 1:]
|
element.tag = element.tag[element.tag.index('}', 1) + 1:]
|
||||||
|
|
||||||
def render_svgs(self, stitch_plan, realistic=False):
|
def render_svgs(self, stitch_plan, realistic=False):
|
||||||
|
|
Ładowanie…
Reference in New Issue