-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Preserve one line #675
Comments
Hey thanks. Can you give an example of how it would be used? I'm not following you completely. |
Sorry, what I mean is to remove all the blank lines but one when there are two or more consecutive blank lines. Today the formatter either removes all the lines (no option provided) or keep them all (--preserve-blank-lines). I have the following snippet:
I would like after formatting is:
Thanks again |
Ok cool, so basically we would consolidate blank lines into a max #? |
Yep, that is what I was thinking. |
hey @ebiscaia, thanks! The next release will include a |
# [1.31.0](v1.30.2...v1.31.0) (2023-06-12) ### Bug Fixes * **formatter:** fixed `line_break_after_multiline_tag` to force break in all cases ([3b37ec8](3b37ec8)), closes [#680](#680) * **formatter:** fixed isolated quotes being deleted from attributes ([19425f9](19425f9)), closes [#652](#652) * **formatter:** fixed wild match on template tags ([d288b78](d288b78)), closes [#686](#686) * **linter:** fixed false positive on t001 ([1caf4c4](1caf4c4)), closes [#606](#606) ### Features * **formatter:** added `max-blank-lines` flag to consolidate blank lines ([4a7897f](4a7897f)), closes [#675](#675) * **formatter:** added support for symphony forms ([e716ddc](e716ddc)), closes [#476](#476)
🎉 This issue has been resolved in version 1.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi guys,
I think this option makes more sense than a simple preserve-lines because sometimes you would like a gap to make the code more readable, but not having it as disjoined parts.
Best regards,
Eduardo
The text was updated successfully, but these errors were encountered: