Skip to content

Commit 3f36c99

Browse files
Nemo157calebcartwright
authored andcommitted
Test that with all comment wrapping disabled table comments are not wrapped
1 parent cdd0b56 commit 3f36c99

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/target/issue-4210-disabled.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// rustfmt-wrap_comments: false
2+
3+
/// Table that is > 80 symbols:
4+
///
5+
/// | table | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
6+
/// |-------|-----------------------------------------------------------------------------|
7+
/// | val | x |
8+
pub struct Item;
9+
10+
/// Table value that is > 80 symbols:
11+
///
12+
/// | table | heading
13+
/// |----------|-----------------------------------------------------------------------------
14+
/// | long val | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
15+
pub struct Item2;

0 commit comments

Comments
 (0)