summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/enum-syntax-number-length.pngbin0 -> 592 bytes
-rw-r--r--tests/suite/model/enum.typ9
-rw-r--r--tests/suite/model/list.typ6
3 files changed, 11 insertions, 4 deletions
diff --git a/tests/ref/enum-syntax-number-length.png b/tests/ref/enum-syntax-number-length.png
new file mode 100644
index 00000000..8b64df62
--- /dev/null
+++ b/tests/ref/enum-syntax-number-length.png
Binary files differ
diff --git a/tests/suite/model/enum.typ b/tests/suite/model/enum.typ
index 57a4d7a6..ed33157e 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 c3c123de..aa117672 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 = {