You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
carstenhag
changed the title
Trailing space(s) on empty line affects start of multiline comment. Ktlint deletes both lines' indentation
Trailing space(s) on empty line affects start of comments. Ktlint deletes both lines' indentation
Jan 11, 2022
In most cases this is probably fixed by the indent rule but at least not
when next line contains a KDoc
Closes#1334
Co-authored-by: Paul Dingemans <[email protected]>
Co-authored-by: Sha Sha Chu <[email protected]>
Expected Behavior
Ktlint deletes 4 spaces, leaves the 1st multiline comment untouched
Observed Behavior
Ktlint deletes 4 spaces and also the indentation of the 1st multiline comment line
Steps to Reproduce
·
= space.editorconfig
-->
If I manually remove the 4 spaces at the empty line, then run ktlint again, it doesn't break the multiline comment anymore.
Your Environment
The text was updated successfully, but these errors were encountered: