-
Notifications
You must be signed in to change notification settings - Fork 279
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
ScalaDoc's with backtick
-ed text gets reformatted with 3.8.4
#4716
Comments
We ran into this as well; hoping this was unintentional because it introduces unwanted whitespace. |
Yes, this is what I see as well - it did find a missing backtick and places I needed spaces but it is better to avoid |
mzuehlke
added a commit
to mzuehlke/cats-effect
that referenced
this issue
Jan 20, 2025
Scalafmt 3.8.4 introduced some formatting bugs that are reverted with this pull request. Issue in Scalafmt: - scalameta/scalafmt#4716 Bad formatting got merged to cats-effect in: - typelevel#4235
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required: Configuration
Steps
Given code like this:
/** Code `block`'s possession gets spaced away. Similar reformatting happens with plural `block`s. */
Problem
Scalafmt formats code like this (extra space added after
block
's closing backticks):/** Code `block` 's possession gets spaced away. Similar reformatting happens with plural `block` s. */
Expectation
I would like the formatted output to look like this:
/** Code `block`'s possession gets spaced away. Similar reformatting happens with plural `block`s. */
Workaround
I failed to find workaround or config, which would not reformat possession in-lined blocks of code, except not upgrading.
Notes
Same unexpected reformatting of ScalaDocs happens with
runner.dialect = Scala213Source3
in Scala 2.13 projects.The text was updated successfully, but these errors were encountered: