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

no-trailing-spaces removes blank lines from KDoc when the line isn't preceded by * #1376

Closed
RBusarow opened this issue Feb 20, 2022 · 0 comments · Fixed by #1383
Closed

no-trailing-spaces removes blank lines from KDoc when the line isn't preceded by * #1376

RBusarow opened this issue Feb 20, 2022 · 0 comments · Fixed by #1383

Comments

@RBusarow
Copy link

Expected Behavior

Blank lines inside a KDoc should not be removed (at least not by a rule which handles trailing spaces).

Observed Behavior

Note that asterisks on each line aren't technically required, even though they're convention.

/**
 Paragraph 1 which should be followed by a blank line.

 Paragraph 2 which should have a blank line before it.
 */
class MyClass

Ktlint wants to change it to this:

/**
 Paragraph 1 which should be followed by a blank line.
 Paragraph 2 which should have a blank line before it.
 */
class MyClass

Your Environment

  • Version of ktlint used: 0.44.0
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Gradle plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants