diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-09-17 13:56:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 11:56:23 +0000 |
| commit | c145e05f01746a72a9455d7fad95f927f568e2fd (patch) | |
| tree | cabcc1683d0c680837b1c60afb1644d819aa7f0e /tests | |
| parent | ea145ff33bb6c3babb9765b5d0059612b2ea54f0 (diff) | |
Fix bad bound in forcibly overflowing optimal paragraph layout (#4975)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-4651-justify-bad-bound.png | bin | 0 -> 207 bytes | |||
| -rw-r--r-- | tests/suite/layout/inline/justify.typ | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/issue-4651-justify-bad-bound.png b/tests/ref/issue-4651-justify-bad-bound.png Binary files differnew file mode 100644 index 00000000..5b73fc66 --- /dev/null +++ b/tests/ref/issue-4651-justify-bad-bound.png 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] |
