diff --git a/tests/ref/enum-syntax-number-length.png b/tests/ref/enum-syntax-number-length.png new file mode 100644 index 000000000..8b64df629 Binary files /dev/null and b/tests/ref/enum-syntax-number-length.png differ diff --git a/tests/suite/model/enum.typ b/tests/suite/model/enum.typ index 57a4d7a68..ed33157e8 100644 --- a/tests/suite/model/enum.typ +++ b/tests/suite/model/enum.typ @@ -35,6 +35,15 @@ Empty \ +Nope \ a + 0. +--- enum-syntax-number-length --- +// Ensure that indentation works from the beginning of a number, not the end. + +10. a + 11. b + 12. c // same level as b + 13. d // indented past c +14. e + --- enum-number-override --- // Test item number overriding. 1. first diff --git a/tests/suite/model/list.typ b/tests/suite/model/list.typ index c3c123de1..aa117672c 100644 --- a/tests/suite/model/list.typ +++ b/tests/suite/model/list.typ @@ -35,7 +35,8 @@ _Shopping list_ - D --- list-indent-trivia-nesting --- -// Test indent nesting behavior with odd trivia (comments and spaces). +// Test indent nesting behavior with odd trivia (comments and spaces). The +// comments should _not_ affect the nesting. Only the final column matters. #let indented = [ - a @@ -48,9 +49,6 @@ _Shopping list_ /**/ - 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 = {