File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1+ 0.2.5 (27/October/17)
2+
3+ * Added support for single case pattern without forced newline (fixes #29)
4+
150.2.4 (25/October/17)
26
37* Updated to Scala 2.12.4
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Usage within a project
5252
5353Have a use for the scalariform source code directly? You can use it as a build dependency: ::
5454
55- "org.scalariform" %% "scalariform" % "0.2.4 "
55+ "org.scalariform" %% "scalariform" % "0.2.5 "
5656
5757Integration with Eclipse
5858------------------------
@@ -765,6 +765,20 @@ is formatted as:
765765 case 1 ⇒ println("odd")
766766 }
767767
768+ singleCasePatternOnNewline
769+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
770+
771+ Default: ``true ``
772+
773+ When ``singleCasePatternOnNewline `` is ``false `` the default behavior of forcing
774+ a single case pattern onto a newline is disabled. This allows for the following formatting style:
775+
776+ .. code :: scala
777+
778+ items.map { case (key, value) =>
779+ (key, transform(value))
780+ }
781+
768782 spaceBeforeColon
769783~~~~~~~~~~~~~~~~
770784
Original file line number Diff line number Diff line change 1- version in ThisBuild := " 0.2.5-SNAPSHOT "
1+ version in ThisBuild := " 0.2.5"
You can’t perform that action at this time.
0 commit comments