summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-08 10:20:24 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-08 10:20:24 +0200
commit10ae0a2c2b54ee1dc1119de528fd209eea5284b4 (patch)
treed17f758f81481f4ab2550bba287ed21e81542af6 /tests/typ
parent4e5cc61599e58b93ea67a7ebd4e5da8550e571e0 (diff)
Fix line alignment
Fixes #1398. How this works for the other shapes is a hack, but the line was missing from that hack.
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/bugs/line-align.typ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/typ/bugs/line-align.typ b/tests/typ/bugs/line-align.typ
new file mode 100644
index 00000000..0518eaaa
--- /dev/null
+++ b/tests/typ/bugs/line-align.typ
@@ -0,0 +1,5 @@
+// Test right-aligning a line and a rectangle.
+
+---
+#align(right, line(length: 30%))
+#align(right, rect())