-
Notifications
You must be signed in to change notification settings - Fork 910
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
Soft wrapping for comments #535
Comments
bump - running into this too. Is this going to land anytime soon or is it not a priority for long time ? |
The plan is that we'll probably turn off formatting of comments altogether. I expect that to happen soon-ish. At the moment I'm concentrating on the formatting RFC process to try and establish default styles rather than Rustfmt, so development is likely to be slow, sorry. |
This is still a pain. I want formatting of comments, but for example with /// Compare the lowest `f32` of both inputs for greater than or equal. The
/// lowest 32 bits of the result will be `0xffffffff` if `a.extract(0)` is
/// greater than or equal `b.extract(0)`, or `0` otherwise. The upper 96 bits of
/// the result are the upper 96 bits of `a`.
gets formatted into: /// Compare the lowest `f32` of both inputs for greater than or equal. The
/// lowest 32 bits of the result will be `0xffffffff` if `a.extract(0)` is
/// greater than or equal `b.extract(0)`, or `0` otherwise. The upper 96 bits
/// of
/// the result are the upper 96 bits of `a`.
IMO |
It seems that rusfmt wants comment lines to fit into 80 characters. To enforce that, it currently does hard wrapping whereas for comments, soft wrapping looks just nicer.
Example:
Becomes:
Instead of:
The text was updated successfully, but these errors were encountered: