summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-09-17 13:56:23 +0200
committerGitHub <noreply@github.com>2024-09-17 11:56:23 +0000
commitc145e05f01746a72a9455d7fad95f927f568e2fd (patch)
treecabcc1683d0c680837b1c60afb1644d819aa7f0e /tests/suite
parentea145ff33bb6c3babb9765b5d0059612b2ea54f0 (diff)
Fix bad bound in forcibly overflowing optimal paragraph layout (#4975)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/layout/inline/justify.typ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/suite/layout/inline/justify.typ b/tests/suite/layout/inline/justify.typ
index b35ff1fd..83fbd057 100644
--- a/tests/suite/layout/inline/justify.typ
+++ b/tests/suite/layout/inline/justify.typ
@@ -167,3 +167,8 @@ int main() {
// an underfull first line.
#set par(hanging-indent: 2.5cm, justify: true)
#lorem(5)
+
+--- issue-4651-justify-bad-bound ---
+// Test that overflow does not lead to bad bounds in paragraph optimization.
+#set par(justify: true)
+#block(width: 0pt)[A B]