summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-06-16 09:48:03 +0200
committerGitHub <noreply@github.com>2024-06-16 07:48:03 +0000
commitf25308d1ebd6554d35d512584ca4c3034f230240 (patch)
treef49ee99d588d25196eddfff3cca437b4a9c1d716 /tests/suite
parent1110b935646fb4174cfce020613378ca7a7e8300 (diff)
Tight lists only attach to preceding paragraphs, not blocks anymore (#4396)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/model/list.typ20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/suite/model/list.typ b/tests/suite/model/list.typ
index 4d3f402d..f9275517 100644
--- a/tests/suite/model/list.typ
+++ b/tests/suite/model/list.typ
@@ -145,3 +145,23 @@ World
--- issue-2530-list-item-panic ---
// List item (pre-emptive)
#list.item[Hello]
+
+--- issue-1850-list-attach-spacing ---
+// List attachment should only work with paragraphs, not other blocks.
+#set page(width: auto)
+#let part = box.with(stroke: 1pt, inset: 3pt)
+#{
+ part[
+ $ x $
+ - A
+ ]
+ part($ x $ + list[A])
+ part($ x $ + list[ A ])
+ part[
+ $ x $
+
+ - A
+ ]
+ part($ x $ + parbreak() + list[A])
+ part($ x $ + parbreak() + parbreak() + list[A])
+}