-
Notifications
You must be signed in to change notification settings - Fork 97
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
Trailing newline in script and style blocks #222
Labels
bug
Something isn't working
Comments
Yes this is a result of Prettier 2.3.0, I just committed a fix in #223, release pending. In the meantime you can downgrade to Prettier 2.2.x . |
This should be fixed with |
dummdidumm
pushed a commit
to dummdidumm/prettier-plugin-svelte
that referenced
this issue
Jun 18, 2021
The check for hardline was insufficient. It could happen that one version of Prettier did create the docs, and another version of Prettier was used for strict reference equality of the hardline builder. Therefore do a deep equality check if the reference check fails. Fixes sveltejs#222
dummdidumm
added a commit
that referenced
this issue
Jun 18, 2021
The check for hardline was insufficient. It could happen that one version of Prettier did create the docs, and another version of Prettier was used for strict reference equality of the hardline builder. Therefore do a deep equality check if the reference check fails. Fixes #222
Version 2.3.1 which is also incoroprated into the latest Svelte for VS Code extension should fix this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tailing newlines are being added to the script and style blocks. This is quite annoying.
For example
becomes
A minimal repository exemplifying the issue can be found here.
The text was updated successfully, but these errors were encountered: