-
Notifications
You must be signed in to change notification settings - Fork 89
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
[0.3.3] Started producing SVG without width, height and viewBox #61
Comments
Thanks for the report, Sebastian. Indeed the width of the svg object was set using a property here: |
I'm not too happy that it takes me to fix breakage like that but alright, I'll do it. And make the CI run the existing tests, if I can trust my eyes it's running black and doing releases but not running the test suite 🤔 Give me an hour or so. |
I found the Travis tests now: They run so late that the commits I checked hadn't seen Travis CI, yet... |
…x-back-into-svg-output Get width, height and viewBox back into SVG output (fixes #61)
i just released v0.3.4 with your fix, thanks for reporting/fixing |
Awesome! I confirm that my regression tests are happy green with 0.3.4 now as well. |
Hi @btel ,
due to my rendering regression tests in xiangqi-setup I noticed that things broke when trying to upgrade to svgutils 0.3.3. What happens is that the width, height, and viewBox parameters are no longer included in the written SVG file. Here's what that looks like in Inkscape: The dotted line is where the viewbox was with svgutils 0.3.2, the solid frame is where the new defacto viewbox is:
Here's a diff of before and after, with regard to the SVG output.
I have a feeling that #58 is causing this:
.width
and.height
(with no underscores) are no longer set?Is that a bug or a feature? How can I make svgutils 0.3.3 put width, height and viewBox into SVG output again?
Thanks and best, Sebastian
The text was updated successfully, but these errors were encountered: