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

Backport #4572 - Proper indentation of multiline post-comments in a list #5649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidBar-On
Copy link
Contributor

Resolve #4546
Backport #4572

Comment on lines +35 to +37
separator: &'a str, /* Comment */
trailing_separator: SeparatorTactic, /* Comment */
separator_place: SeparatorPlace, // Comment 1
Copy link
Contributor

Choose a reason for hiding this comment

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

should these comments be aligned?

Copy link
Contributor Author

@davidBar-On davidBar-On Jan 11, 2023

Choose a reason for hiding this comment

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

The reason for the alignment of the one line comments is backward compatibility - see this #4546 comment. The workaround is actually applicable only to one line comments. However, assuming that one line comments are the common case, it should be applicable for most of the cases.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the link to the previous discussion!

Comment on lines +69 to +70
tactic: DefinitiveListTactic::Vertical, /* Comment */
separator: ",", /* comment */
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, should these comments be aligned?

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.

Second line of Comment is incorrectly indentated
2 participants