Skip to content

fix: deal with 'pt' unit suffix in svg width/height#8

Open
mdealencar wants to merge 2 commits intovdmeer:masterfrom
mdealencar:patch-1
Open

fix: deal with 'pt' unit suffix in svg width/height#8
mdealencar wants to merge 2 commits intovdmeer:masterfrom
mdealencar:patch-1

Conversation

@mdealencar
Copy link

Some .svg files have:

<svg width="100pt" height="50pt">

This PR removes the 'pt' suffix from both elements, which otherwise would cause svg2vector to fail.

matplotlib's savefig('fig.svg') is an example of software that generates svg files that svg2vector can't load.

mdealencar added 2 commits May 8, 2023 20:56
Some `.svg` files have:
```xml
<svg width="100pt" height="50pt">
```

This PR removes the 'pt' suffix from both elements, which otherwise would cause `svg2vector` to fail.

matplotlib's `savefig('fig.svg')` is an example of software that generates svg files that svg2vector can't load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant