-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feature request: allow to retain some empty lines #152
Comments
Thanks for the feature request! This might be doable; in If you are interested in contributing this I would be happy to accept it! If the PR contains the following things:
That would be great if you are willing to contribute this, and you can let me know if you run into any problems. |
Thanks for the reply and the information! I'll try to tackle this and I'll let you know 🙂 |
Hey @doublethink13 I am going to implement this as part of v0.11.0 since I got a couple direct requests for it. Hopefully I don't steal your thunder if you had something going. |
hey @braydonk sure go ahead 😉 i'm very sorry, life got in the way and eventually i forgot about this 🙁 |
That's no problem, it happens. I should be getting this together before next week! |
Imagine I have this file:
As far as I understand, I can do one of two things:
retain_line_breaks
totrue
, which means I could end up with extra lines even after formatting, for example:retain_line_breaks
tofalse
, which means I only end up with:I would like to be able to set
retain_line_breaks
to a number, for example, 1, so that I can have a clear separation of one line, but never more, like the Taskfile style guide suggests, and I personally agree.If this is something relevant I could try to have a look if you are accepting contributors 🙂
The text was updated successfully, but these errors were encountered: