From cd089b6194c57b2e8dff70efaa7cbd53035f7327 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 9 Dec 2022 10:21:11 +0100 Subject: Align set rule --- tests/typ/layout/par.typ | 10 +--------- tests/typ/layout/repeat.typ | 2 +- tests/typ/layout/spacing.typ | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) (limited to 'tests/typ/layout') diff --git a/tests/typ/layout/par.typ b/tests/typ/layout/par.typ index 558059e9..aabe63ef 100644 --- a/tests/typ/layout/par.typ +++ b/tests/typ/layout/par.typ @@ -2,7 +2,7 @@ --- // Test ragged-left. -#set par(align: right) +#set align(right) To the right! Where the sunlight peeks behind the mountain. --- @@ -35,11 +35,3 @@ fn main() {} - List Paragraph - ---- -// Error: 17-20 must be horizontal -#set par(align: top) - ---- -// Error: 17-33 expected alignment, found 2d alignment -#set par(align: horizon + center) diff --git a/tests/typ/layout/repeat.typ b/tests/typ/layout/repeat.typ index 13e99b51..3b5459c9 100644 --- a/tests/typ/layout/repeat.typ +++ b/tests/typ/layout/repeat.typ @@ -32,7 +32,7 @@ A#repeat(rect(width: 2.5em, height: 1em))B // Test single repeat in both directions. A#repeat(rect(width: 6em, height: 0.7em))B -#set par(align: center) +#set align(center) A#repeat(rect(width: 6em, height: 0.7em))B #set text(dir: rtl) diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ index eb0bd39e..3cb1a20c 100644 --- a/tests/typ/layout/spacing.typ +++ b/tests/typ/layout/spacing.typ @@ -19,7 +19,7 @@ Add #h(10pt) #h(10pt) up --- // Test spacing collapsing before spacing. -#set par(align: right) +#set align(right) A #h(0pt) B #h(0pt) \ A B \ A #h(-1fr) B -- cgit v1.2.3