-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
Describe the bug
prettier-plugin-svelte (that is enabled by default) constantly breaks my formatting. Code like
<div>
<a href="https://example.com/something-something">Something Something</a>,
a project about <em>something</em>!
</div>Is automatically formatted to:
<div>
<a href="https://example.com/something-something">Something Something</a>
, a project about
<em>something</em>
!
</div>That leads to render white-spaces before punctuation.
This makes my experience with this extension quite painful. This issue should be addressed in the prettier-plugin-svelte repository, but it seems to be ignored:
- Configure whitespace-sensitive tags prettier-plugin-svelte#28
- Disable HTML formatting prettier-plugin-svelte#102
- Prettier reformat adds unwanted whitespace to HTML prettier-plugin-svelte#103
I'm writing here to ask if there is any alternative to that formatter.
To Reproduce
Steps to reproduce the behavior:
- Install the vscode extension
- Write some html
- Save it
Expected behavior
I expect the extension to not break my formatting.
Screenshots
Before and after saving:
System (please complete the following information):
- OS: GNU/Linux
- IDE: VSCode
- Plugin/Package: Svelte for VSCode
mcmxcdev, johanbissemattsson and fractalbit
Metadata
Metadata
Assignees
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
