Repository navigation
Forward pretty format option to nested SVG frames - #8535
Merged
Merged
Conversation
Contributor
|
This doesn't preserve indentation. #html.frame(circle())compiles to <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<svg style="overflow: visible; width: 2.727272727em; height: 2.727272727em; display: block" viewBox="0 0 30 30" width="30pt" height="30pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:h5="http://www.w3.org/1999/xhtml">
<path fill="none" stroke="#000000" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" d="M 0 0m 0 15c 0 -8.27676 6.72324 -15 15 -15c 8.27676 0 15 6.72324 15 15c 0 8.27676 -6.72324 15 -15 15c -8.27676 0 -15 -6.72324 -15 -15"/>
</svg>
</body>
</html>Still, I prefer this to a minimized SVG👍 |
This was referenced Jun 25, 2026
Member
|
Adding the additional necessary indent for each line on the HTML export side shouldn't be too hard, right? |
Member
Author
No, that's what I thought too. Keeping this on the HTML side, would also keep caching of the frame intact. |
saecki
force-pushed
the
pretty-nested-svg
branch
from
June 30, 2026 10:08
7a00602 to
d7f8a14
Compare
laurmaedje
reviewed
Jun 30, 2026
saecki
force-pushed
the
pretty-nested-svg
branch
from
June 30, 2026 11:10
d7f8a14 to
88ef501
Compare
laurmaedje
pushed a commit
that referenced
this pull request
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This passes the
prettyparameter ofHTMLto nested SVG elements, which seems expected.Before the nested SVGs were always minimized, which was an oversight in #8371.