summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-25 23:35:27 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-25 23:35:27 +0200
commit5594868f8b7a3ca5155804653fc2f2d2fb84a48e (patch)
tree5ee923b831417b4ff8ad3f8e1353a90624ea66f8 /tests
parentcdb9867e0d3c91c5f1e6a93bb9e34e1824d184f7 (diff)
Prevent paragraph from overflowing due to trailing linebreak
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/grid-5.pngbin0 -> 1427 bytes
-rw-r--r--tests/typ/layout/grid-5.typ11
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/ref/layout/grid-5.png b/tests/ref/layout/grid-5.png
new file mode 100644
index 00000000..a43408f8
--- /dev/null
+++ b/tests/ref/layout/grid-5.png
Binary files differ
diff --git a/tests/typ/layout/grid-5.typ b/tests/typ/layout/grid-5.typ
new file mode 100644
index 00000000..cd1c8dc9
--- /dev/null
+++ b/tests/typ/layout/grid-5.typ
@@ -0,0 +1,11 @@
+
+---
+// Test that trailing linebreak doesn't overflow the region.
+#page(height: 2cm)
+#grid[
+ Hello \
+ Hello \
+ Hello \
+
+ World
+]