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/style/construct.typ | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/typ/style/construct.typ') diff --git a/tests/typ/style/construct.typ b/tests/typ/style/construct.typ index 4b0f966a..be11e97e 100644 --- a/tests/typ/style/construct.typ +++ b/tests/typ/style/construct.typ @@ -4,11 +4,7 @@ // Ensure that constructor styles aren't passed down the tree. // The inner list should have no extra indent. #set par(leading: 2pt) -#list( - body-indent: 20pt, - [First], - list([A], [B]) -) +#list(body-indent: 20pt, [First], list[A][B]) --- // Ensure that constructor styles win, but not over outer styles. @@ -29,5 +25,7 @@ A #rect(fill: yellow, inset: 5pt, rect()) B --- -// The inner list should not be indented extra. -[#set text(1em);#list(indent: 20pt, list[A])] +// The constructor property should still work +// when there are recursive show rules. +#show list: text.with(blue) +#list(label: "(a)", [A], list[B]) -- cgit v1.2.3