mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
parent
5db179d67a
commit
5672cc2a29
BIN
tests/ref/enum-syntax-number-length.png
Normal file
BIN
tests/ref/enum-syntax-number-length.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user