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

html and pug formatter extra spaces #1784

Closed
grofzero opened this issue Aug 29, 2022 · 3 comments
Closed

html and pug formatter extra spaces #1784

grofzero opened this issue Aug 29, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@grofzero
Copy link

Hi,

I have a very simple SFC the template looks like this:

{{msg}}
.
I click Format document with Volar in VS Code and the formatter adds extra spaces after the first and before the last curly braces. That's ok, but when I press "Format document" again it adds one more space. It happens only twice with html but with pug every format adds those extra spaces again and again.

Volar version: 0.40.4

@johnsoncodehk
Copy link
Member

Fixed by 92d6c24.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 30, 2022
@itzaks
Copy link

itzaks commented Aug 31, 2022

Hi! I'm currently on v0.40.5 but this is still happening for me with pug. Each save adds a space to each side inside the {{ }} interpolations.

@johnsoncodehk
Copy link
Member

@itzaks Will check it, you can use 0.39.5 for pug project for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants