From 010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 9 Nov 2022 18:16:59 +0100 Subject: New block spacing model --- tests/typ/structure/attach.typ | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'tests/typ/structure/attach.typ') diff --git a/tests/typ/structure/attach.typ b/tests/typ/structure/attach.typ index c6d3c28c..c13de236 100644 --- a/tests/typ/structure/attach.typ +++ b/tests/typ/structure/attach.typ @@ -9,10 +9,8 @@ Attached to: Next paragraph. --- -// Test attached list without parbreak after it. -// Ensures the par spacing is used below by setting -// super high around spacing. -#set list(around: 100pt) +// Test that attached list isn't affected by block spacing. +#show list: it => { set block(above: 100pt); it } Hello - A World @@ -29,8 +27,8 @@ World - B --- -// Test not-attached tight list. -#set list(around: 15pt) +// Test non-attached tight list. +#set block(spacing: 15pt) Hello - A World @@ -41,8 +39,8 @@ World More. --- -// Test that wide lists cannot be attached ... -#set list(around: 15pt, spacing: 15pt) +// Test that wide lists cannot be ... +#set block(spacing: 15pt) Hello - A @@ -50,7 +48,7 @@ Hello World --- -// ... unless really forced to. +// ... even if forced to. Hello -#list(attached: true, tight: false)[A][B] +#list(tight: false)[A][B] World -- cgit v1.2.3