-
Notifications
You must be signed in to change notification settings - Fork 888
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
Fixed 'Incorrect comment indent inside if/else' issue. #4459
Fixed 'Incorrect comment indent inside if/else' issue. #4459
Conversation
Could you elaborate on the removal of the existing test file? |
@calebcartwright It was implemented to test #1575 and there are conflicts between the two cases. And already covered these cases in the new test file.
Should we need to detect the user's indentation and format the last comment with the user's indentation? |
@calebcartwright I changed the PR as you suggested in the comment #4120 (comment) . CI is failing because of a network error. |
Excellent news @whizsid. I've restarted the GH run as it did indeed look spurious. I didn't get a chance to go through the implementation changes, but did a quick run through the tests added and they look great! Will try to go through this in more detail tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done @whizsid, thank you!
* Added test cases * Fixed if condition comment issue * Fixed extern C issue * Removed previous test case * Removed tmp file * honor the authors intent * Changed the file name to its original name * Removed extra whitespace
* Added test cases * Fixed if condition comment issue * Fixed extern C issue * Removed previous test case * Removed tmp file * honor the authors intent * Changed the file name to its original name * Removed extra whitespace
Backported in #4525 |
Fixes #4120 .