Open
Description
Describe the bug
Given any child component taking a prop text: string
.
<Component text={"A\nB"}></Component>
<Component text="A\nB"></Component>
results in:
A B
A\nB
To me this is very unexcepted. It broke my layout that depended on a \n
.
I can see that syntax highlighting marks \n
as "special" when in curly braces, so I could have noticed it.
However, the linting warning Unexpected mustache interpolation with a string literal value.eslint[svelte/no-useless-mustaches](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/)
lead me to remove the curly braces.
Reproduction
Logs
System Info
playground
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels