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

Don't remove non-breaking space in block comment with bare lines #5643

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

Conversation

ytmimi
Copy link
Contributor

@ytmimi ytmimi commented Dec 28, 2022

Fixes #5638

Block comments with bare lines are those that have lines without leading * characters. When reformatting these comments we should be mindful not to remove leading non-breaking spaces (U+00A0).

src/utils.rs Outdated Show resolved Hide resolved
Fixes 5638

Block comments with bare lines are those that have lines without leading
`*` characters. When reformatting these comments we should be mindful
not to remove leading non-breaking spaces (U+00A0).
@calebcartwright
Copy link
Member

iirc this is on the call path for both comments and macros. do you think there's any potential unintended side effects in the macro context, and if so, could we trigger the idempotence check between this branch and the mainline?

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.

Rustfmt deletes leading non-breaking space from comments
3 participants