We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Prettier will move all HTML tags to new lines, effectively inserting whitespace between them, which gets rendered by the browser.
To Reproduce Create Example.svelte and include the following:
Example.svelte
<p>Lucky number: <span>4</span><span>2</span></p>
Prettier will format this like:
<p> Lucky number: <span>4</span> <span>2</span> </p>
Whereas it leaves an HTML file with the same contents alone.
Expected behavior
I would expect the inline elements to be left alone, and whitespace preserved.
System (please complete the following information):
The text was updated successfully, but these errors were encountered:
Duplicate of #323
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Prettier will move all HTML tags to new lines, effectively inserting whitespace between them, which gets rendered by the browser.
To Reproduce
Create
Example.svelte
and include the following:Prettier will format this like:
Whereas it leaves an HTML file with the same contents alone.
Expected behavior
I would expect the inline elements to be left alone, and whitespace preserved.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: