summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatt Fellenz <matt@felle.nz>2023-08-08 02:27:15 -0700
committerGitHub <noreply@github.com>2023-08-08 11:27:15 +0200
commitf56060c1b3fd029f1744322025b89253c5cf5457 (patch)
tree76b4658f1427b93bd0cec46740613168e17883c6 /tests
parentda8367e189b02918a8fe1a98fd3059fd11a82cd9 (diff)
Penalize runts (#1858)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/par-justify.pngbin41627 -> 19571 bytes
-rw-r--r--tests/typ/layout/par-justify.typ9
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/layout/par-justify.png b/tests/ref/layout/par-justify.png
index 9f92034f..fd25c5b7 100644
--- a/tests/ref/layout/par-justify.png
+++ b/tests/ref/layout/par-justify.png
Binary files differ
diff --git a/tests/typ/layout/par-justify.typ b/tests/typ/layout/par-justify.typ
index 8d985cbf..2e5b4806 100644
--- a/tests/typ/layout/par-justify.typ
+++ b/tests/typ/layout/par-justify.typ
@@ -31,3 +31,12 @@ D E F #linebreak(justify: true)
#set page(width: 155pt)
#set par(justify: true)
This text can be fitted in one line.
+
+---
+// Test that runts are avoided when it's not too costly to do so.
+#set page(width: 124pt)
+#set par(justify: true)
+#for i in range(0, 20) {
+ "a b c "
+}
+#"d"