| 1 |
# flags: --no-preview-line-length-1 |
| 2 |
# l2 loses the comment with line-length=1 in preview mode |
| 3 |
l1 = ["This list should be broken up", "into multiple lines", "because it is way too long"] |
| 4 |
l2 = ["But this list shouldn't", "even though it also has", "way too many characters in it"] # fmt: skip |
| 5 |
l3 = ["I have", "trailing comma", "so I should be braked",] |
| 6 |
|
| 7 |
# output |
| 8 |
|
| 9 |
# l2 loses the comment with line-length=1 in preview mode |
| 10 |
l1 = [ |
| 11 |
"This list should be broken up", |
| 12 |
"into multiple lines", |
| 13 |
"because it is way too long", |
| 14 |
] |
| 15 |
l2 = ["But this list shouldn't", "even though it also has", "way too many characters in it"] # fmt: skip |
| 16 |
l3 = [ |
| 17 |
"I have", |
| 18 |
"trailing comma", |
| 19 |
"so I should be braked", |
| 20 |
] |