You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be 100% clear: I am aware this is a duplicate. It appears this is a regression, as presumably it worked at some point (the original is closed).
See #4210. This exact situation occurs on latest rustfmt.
Describe the bug
Running rustfmt --config wrap_comments=true example.rs on
/// doc////// Table that is > 80 symbols:////// | table | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |/// |-------|--------------------------------------------------------------------|/// | val | x |structItem;
turns it into
/// doc////// Table that is > 80 symbols:////// | table | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/// |/// |-------|--------------------------------------------------------------------|/// | val | x/// |structItem;
To be 100% clear: I am aware this is a duplicate. It appears this is a regression, as presumably it worked at some point (the original is closed).
See #4210. This exact situation occurs on latest rustfmt.
Describe the bug
Running
rustfmt --config wrap_comments=true example.rs
onturns it into
This breaks the markdown.
Meta
rustfmt
Related:
The text was updated successfully, but these errors were encountered: