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

Handle <pre>whitespace formatting edge case (no new line) #7264

Closed
dummdidumm opened this issue Feb 14, 2022 · 0 comments · Fixed by #7280
Closed

Handle <pre>whitespace formatting edge case (no new line) #7264

dummdidumm opened this issue Feb 14, 2022 · 0 comments · Fixed by #7280
Labels
bug compiler Changes relating to the compiler

Comments

@dummdidumm
Copy link
Member

The <pre> tag whitespace handling reported in #6437 was largely fixed. There's one detail though that's incorrect: Svelte seems to be adding an extra whitespace when there's a new line at the beginning when this does not happen using plain HTML unless there's an explicit white space after the <pre> tag.

Originally posted by @pablo-abc in #6437 (comment)

@dummdidumm dummdidumm added bug compiler Changes relating to the compiler labels Feb 14, 2022
@dummdidumm dummdidumm changed the title Handle <pre>whitespace formatting edge case (no whitespace for newline) Handle <pre>whitespace formatting edge case (no new line) Feb 14, 2022
Tapped added a commit to Tapped/svelte that referenced this issue Feb 15, 2022
Tapped added a commit to Tapped/svelte that referenced this issue Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug compiler Changes relating to the compiler
Projects
None yet
1 participant