diff options
| author | Ian Wrzesinski <wrzian@umich.edu> | 2024-11-03 20:35:21 -0500 |
|---|---|---|
| committer | Ian Wrzesinski <wrzian@umich.edu> | 2024-11-03 22:04:06 -0500 |
| commit | 2c9728f53b318a6cae092f30ad0956a536af7ccb (patch) | |
| tree | c30909de62b6d2d87c02393542d38b56ddd4beec /tests | |
| parent | 9d9a1b1e33cdc379200c1d3881c34fe05c496894 (diff) | |
18. Restore list indent behavior
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/model/list.typ | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/suite/model/list.typ b/tests/suite/model/list.typ index 46f4621f..c3c123de 100644 --- a/tests/suite/model/list.typ +++ b/tests/suite/model/list.typ @@ -34,6 +34,51 @@ _Shopping list_ - C - D +--- list-indent-trivia-nesting --- +// Test indent nesting behavior with odd trivia (comments and spaces). + +#let indented = [ +- a + /**/- b +/**/ - c + /*spanning + multiple + lines */ - d + - e +/**/ - f +/**/ - g +] +// Current behavior is that list columns are based on the first non-whitespace +// element in their line, so the block comments here determine the column the +// list starts at + +#let item = list.item +#let manual = { + [ ] + item({ + [a] + [ ] + item[b] + [ ]; [ ] + item({ + [c] + [ ]; [ ] + item[d] + }) + [ ] + item({ + [e] + [ ]; [ ] + item[f] + [ ]; [ ] + item[g] + }) + }) + [ ] +} + +#test(indented, manual) + --- list-tabs --- // This works because tabs are used consistently. - A with 1 tab |
