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
If you use a line break like \n in an attribute like title, you get a literal \n in the tooltip output instead of a newline.
It works correctly if you use a variable from the script tag or if you use an actual line break in the source code, but if you write \n you get a literal \n. See the attached REPL:
<script>
let title = 'foo\nbar';
</script>
<h1 {title}>Variable</h1>
<h1 title='foo\nbar'>Inline escaped</h1>
<h1 title='foo
bar'>Inline real</h1>
Works correctly for "Variable" and "Inline real", but not "Inline escaped".
Describe the bug
If you use a line break like
\n
in an attribute liketitle
, you get a literal\n
in the tooltip output instead of a newline.It works correctly if you use a variable from the script tag or if you use an actual line break in the source code, but if you write
\n
you get a literal\n
. See the attached REPL:Works correctly for "Variable" and "Inline real", but not "Inline escaped".
Reproduction
https://svelte.dev/repl/73ceb4ac83b74c33a7d24cafdc81434a?version=3.50.1
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: