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
Missing whitespace between elements if one has non-executed "if" branch #7975
Comments
Odd indeed… but personally I’d just stick a margin-inline: .2em; and the problem goes away. |
https://svelte.dev/repl/bab55fc1bbf24f9e9d988907b45d23f3?version=3.52.0 so if you remove the newline it works https://svelte.dev/repl/205b608760474e20b2a418f60bea897d?version=3.52.0 There are countless open issues here about white-space control in Svelte, but I'm not sure if this is something that can be solved in a nice way. Even if |
Switching to |
Svelte or |
The |
Thanks for taking a look at this. In my case I'm actually using an inline-block already, and if I run things together on one line it fixes case 2 but breaks case 3, deleting the interstitial space. https://svelte.dev/repl/8345055991ef4814a65738ea940edd5b?version=3.52.0 I'll keep playing with this. |
I guess a nonbreaking space could work: https://svelte.dev/repl/20151491249640cb956a39536924085c?version=3.52.0 |
Describe the bug
I'm seeing something weird with whitespace... if I add an "if" block that won't execute, i.e. the condition is false, it messes up the whitespace collapsing logic somehow. Best to see the repl.
Reproduction
https://svelte.dev/repl/2014f35ca35a47f387d62c2bb510332c?version=3.52.0
See example 2 in there. The "jewel" components run together.
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: