You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
white-space can be set in various ways in various places, so checking for this CSS property will never be reliable.
You need to set the compiler option preserveWhitespace to true.
Describe the bug
Whitespaces are not preserved in non-
pre
tags, even withwhite-space; pre;
on.Reproduction
Save this code in a classic
.html
file:Expected render:
Now save it in a
.svelte
component. Actual render:Logs
No response
System Info
System: OS: Windows 10 10.0.19044 Binaries: Node: 18.19.1 npm: 9.6.4 Browsers: Edge: Chromium (126.0.2592.61) npmPackages: svelte: ^4.2.7 => 4.2.18
Severity
annoyance
The text was updated successfully, but these errors were encountered: