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

Saved svgs should be prettified for easier debugging #47

Open
jni opened this issue Jun 19, 2024 · 0 comments
Open

Saved svgs should be prettified for easier debugging #47

jni opened this issue Jun 19, 2024 · 0 comments

Comments

@jni
Copy link
Member

jni commented Jun 19, 2024

It would probably add say 1-5% to the file size, but imho it's worth it.

This SO page has some good ideas:

https://stackoverflow.com/questions/749796/pretty-printing-xml-in-python

I think xml.etree.ElementTree.indent is the easiest thing for us:

https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.indent

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

No branches or pull requests

1 participant