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

[fix] don't de-indent user-rendered HTML #2292

Merged
merged 2 commits into from
Aug 25, 2021
Merged

[fix] don't de-indent user-rendered HTML #2292

merged 2 commits into from
Aug 25, 2021

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Aug 25, 2021

Closes #2289

Thanks to @Conduitry for the excellent investigation in tracking this down

@benmccann benmccann added the bug Something isn't working label Aug 25, 2021
@changeset-bot
Copy link

changeset-bot bot commented Aug 25, 2021

🦋 Changeset detected

Latest commit: db38f52

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Conduitry
Copy link
Member

Have you checked what this produces? Is the rendered HTML as aesthetically pleasing as before, or is the serialized data unnecessarily indented? It doesn't matter a whole lot, but I'd probably prefer the output to look tidy rather than the SvelteKit code to look pretty, if we have to choose one or the other.

@benmccann
Copy link
Member Author

benmccann commented Aug 25, 2021

It looks worse, but not because the serialized data is indented, but because the HTML is indented. But I don't think we want to muck with the HTML

Before

Screenshot from 2021-08-25 10-35-24

After

Screenshot from 2021-08-25 10-35-33

Co-authored-by: Conduitry <git@chor.date>
@benmccann benmccann changed the title [fix] don't run replace on user html [fix] don't de-indent user-rendered HTML Aug 25, 2021
@benmccann benmccann merged commit a7f4ca1 into master Aug 25, 2021
@benmccann benmccann deleted the dont-replace branch August 25, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code formatting displays terribly in docs
2 participants