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 ++++++++---------- tests/typ/structure/desc.typ | 2 +- tests/typ/structure/heading.typ | 4 ++-- tests/typ/structure/list.typ | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) (limited to 'tests/typ/structure') 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 diff --git a/tests/typ/structure/desc.typ b/tests/typ/structure/desc.typ index af1b2986..1bc92625 100644 --- a/tests/typ/structure/desc.typ +++ b/tests/typ/structure/desc.typ @@ -30,8 +30,8 @@ No: list \ --- // Test style change. #set text(8pt) - / First list: #lorem(4) + #set desc(body-indent: 30pt) / Second list: #lorem(4) diff --git a/tests/typ/structure/heading.typ b/tests/typ/structure/heading.typ index b552f6c3..9fd4e648 100644 --- a/tests/typ/structure/heading.typ +++ b/tests/typ/structure/heading.typ @@ -43,9 +43,9 @@ multiline. --- // Test styling. -#show heading.where(level: 5): it => { +#show heading.where(level: 5): it => block( text(family: "Roboto", fill: eastern, it.body + [!]) -} +) = Heading ===== Heading 🌍 diff --git a/tests/typ/structure/list.typ b/tests/typ/structure/list.typ index 9a021f31..9ed5993a 100644 --- a/tests/typ/structure/list.typ +++ b/tests/typ/structure/list.typ @@ -6,7 +6,7 @@ No list --- _Shopping list_ -#list(attached: true)[Apples][Potatoes][Juice] +#list[Apples][Potatoes][Juice] --- - First level. -- cgit v1.2.3