Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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