diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-09 10:21:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-09 10:21:11 +0100 |
| commit | cd089b6194c57b2e8dff70efaa7cbd53035f7327 (patch) | |
| tree | f5466a0e2f8633aa609276c0c2794911c7e9252a /tests/typ/layout | |
| parent | 495b525694aa5901385f3acad043b4a9f3ebb911 (diff) | |
Align set rule
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/par.typ | 10 | ||||
| -rw-r--r-- | tests/typ/layout/repeat.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/spacing.typ | 2 |
3 files changed, 3 insertions, 11 deletions
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 |
