We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d2a1a commit 479128bCopy full SHA for 479128b
rustfmt-core/rustfmt-lib/src/comment.rs
@@ -704,6 +704,9 @@ impl<'a> CommentRewrite<'a> {
704
} else if self.fmt.config.wrap_comments() && ItemizedBlock::is_itemized_line(&line) {
705
let ib = ItemizedBlock::new(&line);
706
self.item_block = Some(ib);
707
+ if self.result.ends_with(' ') {
708
+ self.result.pop();
709
+ }
710
return false;
711
}
712
rustfmt-core/rustfmt-lib/tests/target/issue-4104.rs
@@ -0,0 +1,7 @@
1
+// rustfmt-wrap_comments: true
2
+// rustfmt-normalize_comments: true
3
+
4
+///
5
+/// - item 1
6
7
+fn main() {}
0 commit comments