diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2020-12-28 07:11:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-28 07:11:38 +0100 |
| commit | 41c25ffe14bf69933dbf35e39a5649dec28e7519 (patch) | |
| tree | fc05750daa37f189e57b80660e1a5ab5952edca7 /lib/extensions/print_pdf.py | |
| parent | 13ce739e77891a5af71d34f26d84b201efaaabc9 (diff) | |
fix print pdf when svg contains comments (#939)
Diffstat (limited to 'lib/extensions/print_pdf.py')
| -rw-r--r-- | lib/extensions/print_pdf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/print_pdf.py b/lib/extensions/print_pdf.py index 387e246b..8af07cf7 100644 --- a/lib/extensions/print_pdf.py +++ b/lib/extensions/print_pdf.py @@ -194,7 +194,7 @@ class Print(InkstitchExtension): def strip_namespaces(self, svg): # namespace prefixes seem to trip up HTML, so get rid of them 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:] def render_svgs(self, stitch_plan, realistic=False): |
