scala-ide / scalariform

Scala source code formatter
http://scala-ide.github.com/scalariform/
MIT License
527 stars 148 forks source link

Space after an equal sign in foreach statements is being removed #254

Closed Jaystified closed 6 years ago

Jaystified commented 6 years ago

foo.foreach(bar.baz = _) Is being formatted into foo.foreach(bar.baz= _) I'd like to be able to have it the other way around...

godenji commented 6 years ago

Thanks for reporting, "gapless assignment" was fixed in 0.2.1, must have been a regression (or tests in MutateTest.scala don't cover this case).

This is especially annoying in Scala.js