summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-17 23:54:43 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-17 23:54:43 +0100
commitd9c529347d7f46eb2f4698d256b1906c1ced6b76 (patch)
treef9eb0bfcb58c46fa2d7cbdbb7166e3a5509e7fdb /tests/typ/text
parent095fa52be5d7ed135f39553359e0253cfea6b71b (diff)
Configurable paragraph alignment
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/par.typ11
1 files changed, 10 insertions, 1 deletions
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)