`wrap_comments` does not ensure code blocks start on a new line
imlazyeye opened this issue · 1 comments
imlazyeye commented
When a long line in a comment is followed by a code block, rustfmt may break the formatting on the code block.
Configuration
edition = "2021"
wrap_comments = true
unstable_features = true
Input
/// Here is me writing some documentation that is too long oh me oh my now some code please!
/// ```
/// test
/// ```
fn foo() {}
Output
/// Here is me writing some documentation that is too long oh me oh my now some
/// code please! ```
/// test
/// ```
fn foo() {}
Expected
/// Here is me writing some documentation that is too long oh me oh my now some
/// code please!
/// ```
/// test
/// ```
fn foo() {}
ytmimi commented
Thanks for submitting this report!