Environment information
When formatting Svelte files with experimentalFullSupportEnabled, the HTML formatter collapses inline element content (like or custom components) with embedded expressions onto a single line, instead of keeping them on separate lines.
This affects both css and strict whitespace sensitivity modes, producing different but equally incorrect results.
Input
<ul>
<li>
<div>
{name}
</div>
</li>
</ul>
Expected output (matches Prettier with htmlWhitespaceSensitivity: "css")
<ul>
<li>
<div>
{name}
</div>
</li>
</ul>
Actual output
With whitespaceSensitivity: "css" (default):
<ul>
<li>
<div>{name}</div>
</li>
</ul>
With whitespaceSensitivity: "strict":
<ul>
<li> <div> {name} </div> </li>
</ul>
Code of Conduct
Environment information
When formatting Svelte files with experimentalFullSupportEnabled, the HTML formatter collapses inline element content (like or custom components) with embedded expressions onto a single line, instead of keeping them on separate lines.
This affects both css and strict whitespace sensitivity modes, producing different but equally incorrect results.
Input
Expected output (matches Prettier with htmlWhitespaceSensitivity: "css")
Actual output
With whitespaceSensitivity: "css" (default):
With whitespaceSensitivity: "strict":
Playground link
Code of Conduct