-
Notifications
You must be signed in to change notification settings - Fork 72
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
amend: respect core.commentChar #152
Conversation
Reviews in this chain: |
|
a3fc421
to
1c17503
Compare
333a4c4
to
4429d17
Compare
1c17503
to
ef0f540
Compare
4429d17
to
d497a62
Compare
ef0f540
to
417a57f
Compare
d497a62
to
e5b2e24
Compare
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.
Nice, didn't even know this was a config option
comments = f"\n{CLEANUP_STRIP_COMMENT}\n{comments}" | ||
comments = f"\n{CLEANUP_STRIP_COMMENT.format(comment_char)}\n{comments}" |
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.
Format in an interpolated string is kinda wild, but I can't think of a nicer way lol
417a57f
to
56a4716
Compare
e5b2e24
to
9282fd7
Compare
Similarly we can respect the configured comment character pretty easily by using it instead of # when applicable.
9282fd7
to
4875af0
Compare
Similarly we can respect the configured comment character
pretty easily by using it instead of # when applicable.