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

Potential Feature: XML view #3

Open
snwh opened this issue May 25, 2022 · 3 comments
Open

Potential Feature: XML view #3

snwh opened this issue May 25, 2022 · 3 comments

Comments

@snwh
Copy link
Contributor

snwh commented May 25, 2022

While the visual optimization view is nice, it may be worthwhile having a view switcher to allow seeing the markup/xml optimizations as well as the visual.

@sonnyp
Copy link
Owner

sonnyp commented May 26, 2022

Do you have a use case in mind?

The point of svgo is to produce small and optimized XML output so I'm not sure that this would be very useful as it'll be unreadable to humans.

@snwh
Copy link
Contributor Author

snwh commented May 26, 2022

Likely not for large illustrations but of you are designing simple SVG icons for example, which might only be a couple objects, it is useful to see the XML in case there are errors or if the optimization was overly aggressive which may affect how they are displayed on the web or what not.

@zroug
Copy link

zroug commented Feb 12, 2023

I think a markup/xml preview could do some basic whitespace formatting. Removing unnecessary whitespace doesn't need to be included in a markup preview because it's such a simple operation. To avoid confusion, a small hint could be added, such as "For readability, the preview does not include whitespace optimization".

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

3 participants