-
-
Notifications
You must be signed in to change notification settings - Fork 4
Incorrect Formatting for Multiline Attributes #35
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
Comments
Thank you! This is indeed a bug. I'll see what I can do. |
As a happy user of Prettier for Ruby, I also ran into this bug while migration from Slim to Haml. I hope it can be fixed. |
@ledermann I'd be happy to accept any pull requests if you want to put one together. |
@kddnewton Have you noticed my PR? It fixes this bug. |
Now fixed on |
Given this code:
The first time I save (in VSCode, format on save) I get this, which is expected:
But I save again, and it turns into this, which is unexpected:
So it appears the syntax_tree formatting is incorrect and not idempotent (vocabulary word!) in this case.
The text was updated successfully, but these errors were encountered: