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

Formatting comments adds empty lines in some situations #151

Closed
douira opened this issue Oct 28, 2021 · 0 comments
Closed

Formatting comments adds empty lines in some situations #151

douira opened this issue Oct 28, 2021 · 0 comments
Labels
possible bug Could be a bug

Comments

@douira
Copy link

douira commented Oct 28, 2021

Comments like the following are formatted to have an ever increasing number of empty lines:

//foo
//

Turns into:

//foo
//
//

With each formatting pass the number of empty // lines doubles. The same happens to block comments. This only happens if reflowComments is enabled.

@douira douira changed the title Formatting comments adds empty lines sometimes Formatting comments adds empty lines in some situations Oct 28, 2021
@mike-lischke mike-lischke added the possible bug Could be a bug label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Could be a bug
Projects
None yet
Development

No branches or pull requests

2 participants