Skip to content
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

2.6.0 regression in single-line ScalaDoc formatting #2028

Closed
ceedubs opened this issue Jun 17, 2020 · 0 comments · Fixed by #2031
Closed

2.6.0 regression in single-line ScalaDoc formatting #2028

ceedubs opened this issue Jun 17, 2020 · 0 comments · Fixed by #2031

Comments

@ceedubs
Copy link

ceedubs commented Jun 17, 2020

This template is a guideline, not a strict requirement.

  • Version: 2.6.0
  • Integration: Metals
  • Configuration:
version=2.6.0
maxColumn = 100
align = none
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses = false
rewrite.rules = [SortImports, RedundantBraces, RedundantParens, SortModifiers]
docstrings = JavaDoc

Steps

Given code like this:

  /** alias for [[literal]] */

When I run scalafmt like this:

scalafmt

Problem

Scalafmt formats code like this:

  /**
   * alias for [[literal]] */

Expectation

I would like the formatted output to look like this:

  /** alias for [[literal]] */

Notes

This behavior changed from 2.5.3 to 2.6.0. The change might have been introduced by #1968.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant