-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add the options to format keeping line breaks #32
Comments
Unfortunately, to explicitly retain line-breaks (and then do an appropriate indent) at arbitrary locations requires a moderate amount of rework of the formatter -- which I definitely want to do at some point, but it's a long term feature. Are there any cases that are of particular issue to you? It's relatively easy to fix individual scenarios. |
Thank you for explaining, it's not an urgent need, but it would be nice if it were supported at some point. If you want to fix individual cases, then my biggest pain point is scalariform moving: to (a_long_line && which I find notpretty at all... |
The indents were eaten, seems I have to learn github markup. |
No problem, I've opened issue #33 for your particular case. |
I'm also looking for a way to preserve line breaks. My specific situation where I'd like to preserve line breaks is in code that looks like: def myfunciton(someVeryLongParameterNames:AndALongTypeName)
(WithAnotherLongCurriedParameterThatIdLikeToHaveOn : TheNextLine)
: AndSinceItsSoLongPutTheReturnTypeAnnotationDownHere =
{
//the method
} In my code base I'm finding single lines of code that are hundreds of characters long, making them unreadable. I'd like to have ways to shorten function and class declarations by adding line breaks, but I can't find an option to preserve them. |
fixed in 0.2.4 |
Currently scalariform doesn't respect explicit line breaks, and as a result produces the results I don't want.
Would be nice if an option like keepLineBreaks could be added.
The text was updated successfully, but these errors were encountered: