diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-06-16 09:48:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-16 07:48:03 +0000 |
| commit | f25308d1ebd6554d35d512584ca4c3034f230240 (patch) | |
| tree | f49ee99d588d25196eddfff3cca437b4a9c1d716 /tests | |
| parent | 1110b935646fb4174cfce020613378ca7a7e8300 (diff) | |
Tight lists only attach to preceding paragraphs, not blocks anymore (#4396)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-1850-list-attach-spacing.png | bin | 0 -> 884 bytes | |||
| -rw-r--r-- | tests/ref/issue-grid-base-auto-row-list.png | bin | 225 -> 234 bytes | |||
| -rw-r--r-- | tests/ref/list-mix.png | bin | 968 -> 1020 bytes | |||
| -rw-r--r-- | tests/ref/par-first-line-indent.png | bin | 11026 -> 10996 bytes | |||
| -rw-r--r-- | tests/ref/set-instantiation-site-markup.png | bin | 1084 -> 1127 bytes | |||
| -rw-r--r-- | tests/suite/model/list.typ | 20 |
6 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/issue-1850-list-attach-spacing.png b/tests/ref/issue-1850-list-attach-spacing.png Binary files differnew file mode 100644 index 00000000..45faa56c --- /dev/null +++ b/tests/ref/issue-1850-list-attach-spacing.png diff --git a/tests/ref/issue-grid-base-auto-row-list.png b/tests/ref/issue-grid-base-auto-row-list.png Binary files differindex 8da3adf5..5033e71d 100644 --- a/tests/ref/issue-grid-base-auto-row-list.png +++ b/tests/ref/issue-grid-base-auto-row-list.png diff --git a/tests/ref/list-mix.png b/tests/ref/list-mix.png Binary files differindex 0f2b03cf..2c263c02 100644 --- a/tests/ref/list-mix.png +++ b/tests/ref/list-mix.png diff --git a/tests/ref/par-first-line-indent.png b/tests/ref/par-first-line-indent.png Binary files differindex e6d7ed76..95027222 100644 --- a/tests/ref/par-first-line-indent.png +++ b/tests/ref/par-first-line-indent.png diff --git a/tests/ref/set-instantiation-site-markup.png b/tests/ref/set-instantiation-site-markup.png Binary files differindex 180444b9..95193e5c 100644 --- a/tests/ref/set-instantiation-site-markup.png +++ b/tests/ref/set-instantiation-site-markup.png 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]) +} |
