Arguments of nested anonymous functions are crammed into a single line
odisseus opened this issue · 1 comments
odisseus commented
When I have an anonymous function that returns another anonymous function, I would like to keep the arguments of each consecutive layer in a separate line. However, Scalariform moves them all into a single line, and I could not find a configuration key to change this behaviour.
Here's an example:
Before:
object Main {
def foo: Int => Int => String = {
x: Int =>
y: Int =>
"x"
}
}
After:
object Main {
def foo: Int => Int => String = { x: Int => y: Int =>
"x"
}
}
This issue may be similar to #21, but it is not a duplicate. In particular, the example from #21 is not being reformatted.
I use SBT 1.1.1 with Scala 2.12.4 and sbt-scalariform 1.8.2 with scalariform 0.2.5.
It seems that the change that breaks my example has been deliberately introduced by commit 34a7bbd.