Skip to content
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

Whitespace is removed around <tspan> elements #3998

Closed
Rich-Harris opened this issue Nov 26, 2019 · 2 comments · Fixed by #4107
Closed

Whitespace is removed around <tspan> elements #3998

Rich-Harris opened this issue Nov 26, 2019 · 2 comments · Fixed by #4107
Labels

Comments

@Rich-Harris
Copy link
Member

Describe the bug
The whitespace between foo and bar is removed:

<svg>
  <text>
    <tspan>foo</tspan> {"bar"}
  </text>
</svg>

To Reproduce
https://svelte.dev/repl/c80264cf1a924890bf1e23374337b141?version=3.15.0

Expected behavior
Both <text> elements should contain foo bar, not foobar.

Severity
Can be worked around, but is a bit of a nuisance

@ghost
Copy link

ghost commented Dec 13, 2019

I have a fix for this... PR on its way :)

@Conduitry
Copy link
Member

Fixed in 3.16.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants