scalameta / scalafmt

Code formatter for Scala
http://scalameta.org/scalafmt
Apache License 2.0
1.44k stars 277 forks source link

bug: non-idempotent case when `docstrings.oneline = fold` #4536

Closed xieve closed 2 weeks ago

xieve commented 2 weeks ago

Configuration

version = 3.8.4-RC1
runner.dialect = scala3
docstrings.oneline = fold

Command-line parameters

scalafmt <file>

Example

/** foo
 * bar
 */

↓ first run

/** foo bar
  */

↓ second run

/** foo bar */

Notes

Sorry for not reporting this properly yesterday.