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

Don't pretty-print SVG or MathML #63

Open
aantron opened this issue Mar 23, 2021 · 1 comment
Open

Don't pretty-print SVG or MathML #63

aantron opened this issue Mar 23, 2021 · 1 comment

Comments

@aantron
Copy link
Owner

aantron commented Mar 23, 2021

See PataphysicalSociety/soupault#25:

This is arguably an upstream bug. Lambda Soup's (that is, Markup's) pretty-printer is supposedly sensitive to the meaning of elements, and should only insert whitespace where it would have no semantic effect (typically, where there is already whitespace around HTML phrasing content, and anywhere around HTML flow content). It should probably just treat all SVG (and MathML) as opaque, while IIRC it currently applies blind pretty-printing to it instead.

@aantron
Copy link
Owner Author

aantron commented Mar 23, 2021

...or have Markup.ml understand SVG and MathML semantics.

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