diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-12-11 16:46:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 15:46:10 +0000 |
| commit | 521ceae889f15f2a93683ab776cd86a423e5dbed (patch) | |
| tree | 9f81b78aef566843df943224aee8f661854b376b /tests | |
| parent | 5e0e58d26ef656836aae8d16477bb059e97883a3 (diff) | |
Fix crash due to consecutive weak spacing (#5562)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-5244-consecutive-weak-space-heading.png | bin | 0 -> 346 bytes | |||
| -rw-r--r-- | tests/ref/issue-5244-consecutive-weak-space.png | bin | 0 -> 194 bytes | |||
| -rw-r--r-- | tests/ref/issue-5253-consecutive-weak-space-math.png | bin | 0 -> 138 bytes | |||
| -rw-r--r-- | tests/suite/layout/spacing.typ | 18 |
4 files changed, 18 insertions, 0 deletions
diff --git a/tests/ref/issue-5244-consecutive-weak-space-heading.png b/tests/ref/issue-5244-consecutive-weak-space-heading.png Binary files differnew file mode 100644 index 00000000..c1ef7924 --- /dev/null +++ b/tests/ref/issue-5244-consecutive-weak-space-heading.png diff --git a/tests/ref/issue-5244-consecutive-weak-space.png b/tests/ref/issue-5244-consecutive-weak-space.png Binary files differnew file mode 100644 index 00000000..7a102ddf --- /dev/null +++ b/tests/ref/issue-5244-consecutive-weak-space.png diff --git a/tests/ref/issue-5253-consecutive-weak-space-math.png b/tests/ref/issue-5253-consecutive-weak-space-math.png Binary files differnew file mode 100644 index 00000000..a15646ca --- /dev/null +++ b/tests/ref/issue-5253-consecutive-weak-space-math.png diff --git a/tests/suite/layout/spacing.typ b/tests/suite/layout/spacing.typ index f5938995..d5cd122c 100644 --- a/tests/suite/layout/spacing.typ +++ b/tests/suite/layout/spacing.typ @@ -58,3 +58,21 @@ This is the first line \ #h(2cm, weak: true) A new line // Non-weak-spacing, on the other hand, is not removed. This is the first line \ #h(2cm, weak: false) A new line + +--- issue-5244-consecutive-weak-space --- +#set par(linebreaks: "optimized") +#{ + [A] + h(0.3em, weak: true) + h(0.3em, weak: true) + [B] +} + +--- issue-5244-consecutive-weak-space-heading --- +#set par(justify: true) +#set heading(numbering: "I.") + += #h(0.3em, weak: true) test + +--- issue-5253-consecutive-weak-space-math --- +$= thin thin$ a |
