From 79638d4bbdc140a8dca0ccfdf70ffd607d5da251 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 16 Nov 2021 12:47:14 +0100 Subject: Don't wrap already layoutable nodes into flows/pars unnecessarily --- tests/typ/layout/stack-1.typ | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/typ/layout/stack-1.typ') diff --git a/tests/typ/layout/stack-1.typ b/tests/typ/layout/stack-1.typ index b8d8a09d..42a0137d 100644 --- a/tests/typ/layout/stack-1.typ +++ b/tests/typ/layout/stack-1.typ @@ -13,9 +13,8 @@ w => rect(width: w, height: 10pt, fill: next()) } -#let items = for w in widths { (shaded(w),) } +#let items = for w in widths { (align(right, shaded(w)),) } -#align(right) #page(width: 50pt, margins: 0pt) #stack(dir: btt, ..items) #pagebreak() -- cgit v1.2.3