-
Notifications
You must be signed in to change notification settings - Fork 277
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
Keep the breaking in new lines #366
Comments
I have also experienced that scalafmt forces a select chain on a single line when I would like it to be multiline. It would be possible to skip the single line layout if there is a newline before the first select, which is |
I think this can be fixed here: https://github.com/olafurpg/scalafmt/blob/master/core/src/main/scala/org/scalafmt/internal/Router.scala#L828 It should be something like |
Pushed a PR that solves this. |
Closed in #440 |
I don't quiet understand how to use this.
and
|
There's a section in the changelog describing more about the flag |
Thanks @olafurpg for the hint! |
Hi,
Original:
Scalafmt:
I would like Scalafmt to keep the breaking in new lines.
Using:
Thanks!
The text was updated successfully, but these errors were encountered: