Gautier Ben Aïm 7 months ago committed by GitHub
parent 04ba134d33
commit 10380c2309
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -689,16 +689,16 @@ Previously, Svelte employed a very complicated algorithm to determine if whitesp
- `foo- bar` in Svelte 5
You can reintroduce the missing space by moving it outside the `<span>`...
```svelte
<p>foo <span>- bar</span></p>
```
...or, if necessary for styling reasons, including it as an expression:
...or, if necessary for styling reasons, including it as an expression:
```svelte
```svelte
<p>foo<span>{' '}- bar</span></p>
```
```
- Certain exceptions apply such as keeping whitespace inside `pre` tags

Loading…
Cancel
Save