diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-17 23:54:43 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-17 23:54:43 +0100 |
| commit | d9c529347d7f46eb2f4698d256b1906c1ced6b76 (patch) | |
| tree | f9eb0bfcb58c46fa2d7cbdbb7166e3a5509e7fdb /tests | |
| parent | 095fa52be5d7ed135f39553359e0253cfea6b71b (diff) | |
Configurable paragraph alignment
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/par.png | bin | 3432 -> 5732 bytes | |||
| -rw-r--r-- | tests/typ/text/par.typ | 11 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/ref/text/par.png b/tests/ref/text/par.png Binary files differindex fb493bd4..47f0ed95 100644 --- a/tests/ref/text/par.png +++ b/tests/ref/text/par.png diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 4b223684..9955b993 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -1,8 +1,17 @@ // Test configuring paragraph properties. --- -#par(spacing: 100%, leading: 0pt) +// Test ragged-left. +#par(align: right) +To the right! Where the sunlight peeks behind the mountain. +--- +// Test weird metrics. +#par(spacing: 100%, leading: 0pt) But, soft! what light through yonder window breaks? It is the east, and Juliet is the sun. + +--- +// Error: 13-16 must be horizontal +#par(align: top) |
