summaryrefslogtreecommitdiff
path: root/tests/suite/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-12-11 16:46:10 +0100
committerGitHub <noreply@github.com>2024-12-11 15:46:10 +0000
commit521ceae889f15f2a93683ab776cd86a423e5dbed (patch)
tree9f81b78aef566843df943224aee8f661854b376b /tests/suite/layout
parent5e0e58d26ef656836aae8d16477bb059e97883a3 (diff)
Fix crash due to consecutive weak spacing (#5562)
Diffstat (limited to 'tests/suite/layout')
-rw-r--r--tests/suite/layout/spacing.typ18
1 files changed, 18 insertions, 0 deletions
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