summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-08 11:21:35 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-08 11:21:35 +0200
commitf3e3061a7ff0307c9ad0efc06b58b3ce8a9553cd (patch)
treee26cbcc4c51c546015e9b61b9211680f643d72bf /tests
parent10ae0a2c2b54ee1dc1119de528fd209eea5284b4 (diff)
Fix a bug in footnote together-keeping logic
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/footnote-keep-multiple.pngbin0 -> 1914 bytes
-rw-r--r--tests/typ/bugs/footnote-keep-multiple.typ10
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/ref/bugs/footnote-keep-multiple.png b/tests/ref/bugs/footnote-keep-multiple.png
new file mode 100644
index 00000000..f3b67a74
--- /dev/null
+++ b/tests/ref/bugs/footnote-keep-multiple.png
Binary files differ
diff --git a/tests/typ/bugs/footnote-keep-multiple.typ b/tests/typ/bugs/footnote-keep-multiple.typ
new file mode 100644
index 00000000..3aa0b9d9
--- /dev/null
+++ b/tests/typ/bugs/footnote-keep-multiple.typ
@@ -0,0 +1,10 @@
+// Test that the logic that keeps footnote entry together with
+// their markers also works for multiple footnotes in a single
+// line or frame (here, there are two lines, but they are one
+// unit due to orphan prevention).
+
+---
+#set page(height: 100pt)
+#v(30pt)
+A #footnote[a] \
+B #footnote[b]