summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Wrzesinski <133046678+wrzian@users.noreply.github.com>2025-01-16 08:40:29 -0500
committerGitHub <noreply@github.com>2025-01-16 13:40:29 +0000
commit63c4720ed2b9e034fda6810a9c0e521355a24c44 (patch)
treea92370da42504608c7d06e838d5972cca165f0b2 /tests
parenta4ac4e656267e718a5cf60d1e959f74b2b7346f3 (diff)
Fix list indent when starting at an open bracket (#5677)
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/model/list.typ43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/suite/model/list.typ b/tests/suite/model/list.typ
index 138abf70..b3d9a830 100644
--- a/tests/suite/model/list.typ
+++ b/tests/suite/model/list.typ
@@ -77,6 +77,49 @@ _Shopping list_
#test(indented, manual)
+--- list-indent-bracket-nesting ---
+// Test list indent nesting behavior when directly at a starting bracket.
+
+#let indented = {
+ [- indented
+ - less
+ ]
+ [- indented
+ - same
+ - then less
+ - then same
+ ]
+ [- indented
+ - more
+ - then same
+ - then less
+ ]
+}
+
+#let item = list.item
+#let manual = {
+ {
+ item[indented]; [ ]
+ item[less]; [ ]
+ }
+ {
+ item[indented]; [ ]
+ item[same]; [ ]
+ item[then less #{
+ item[then same]
+ }]; [ ]
+ }
+ {
+ item[indented #{
+ item[more]
+ }]; [ ]
+ item[then same]; [ ]
+ item[then less]; [ ]
+ }
+}
+
+#test(indented, manual)
+
--- list-tabs ---
// This works because tabs are used consistently.
- A with 1 tab