Closed fjenett closed 2 years ago
@fjenett Just a note to say thanks for this—I'm not sure I would have figured out the problem otherwise. I successfully patched this in a fork & it's working great for me. Thanks again!
FYI, I welcome PR for fixing this.
@BachiLi For sure! Just submitted one.
thanks!
Here: https://github.com/BachiLi/diffvg/blob/fd38f71527b6258ddaf54ba2db3596b396dc80e1/pydiffvg/save_svg.py#L78
The attributes need to be passed as strings, otherwise converting the xml tree to a string in prettify() fails with:
Here is the fix: