Skip to content

Fix: html-indent for solo comment (fixes #330) #333

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

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

mysticatea
Copy link
Member

@mysticatea mysticatea commented Jan 7, 2018

Fixes #330.

This PR includes #309 to avoid confliction.

This PR changes the indentation of comments. If it detects solo comment (the next token is closing token and primary expected indentation and secondary expected indentation are same), then makes +1 indentation for the comment. See 7fd45c4 for details.

This change needs semver-minor because it's a bug fix which can increase warnings.

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 But let's wait for #309 first :)

@mysticatea mysticatea force-pushed the html-indent/fix-for-solo-comment branch from 7fd45c4 to c17799f Compare January 7, 2018 16:15
@mysticatea
Copy link
Member Author

I rebased this PR.

@michalsnik michalsnik merged commit 9f83c5a into master Jan 7, 2018
@michalsnik michalsnik deleted the html-indent/fix-for-solo-comment branch January 7, 2018 18:18
@michalsnik
Copy link
Member

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

html-indent: extra warning on line with comment
2 participants