summaryrefslogtreecommitdiff
path: root/tests/typ/graphics
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-28 17:57:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-28 17:57:16 +0100
commit836692e73cff0356e409a9ba5b4887b86809d4ca (patch)
treee174178047c368c66746ee073eea1b3129825479 /tests/typ/graphics
parent989d170dc7318ca3cbaa5b76760eb14f4e6a8605 (diff)
Widow and orphan prevention
Diffstat (limited to 'tests/typ/graphics')
-rw-r--r--tests/typ/graphics/image.typ2
-rw-r--r--tests/typ/graphics/shape-aspect.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/graphics/image.typ b/tests/typ/graphics/image.typ
index 3c906d4f..e97365cd 100644
--- a/tests/typ/graphics/image.typ
+++ b/tests/typ/graphics/image.typ
@@ -38,7 +38,7 @@
---
// Does not fit to remaining height of page.
#set page(height: 60pt)
-Stuff \
+Stuff #parbreak()
Stuff
#image("/res/rhino.png")
diff --git a/tests/typ/graphics/shape-aspect.typ b/tests/typ/graphics/shape-aspect.typ
index 464d1827..f2dd9b51 100644
--- a/tests/typ/graphics/shape-aspect.typ
+++ b/tests/typ/graphics/shape-aspect.typ
@@ -36,7 +36,7 @@
---
// Test square that is overflowing due to its aspect ratio.
#set page(width: 40pt, height: 20pt, margin: 5pt)
-#square(width: 100%)
+#square(width: 100%) #parbreak()
#square(width: 100%)[Hello]
---