summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-08 11:51:20 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-08 11:51:42 +0200
commita1b0a418837dd5fc017e98e2c9cc200a87c11e2d (patch)
tree08d2a49a6f36ce59edba56dfaafbc8a0ade50958 /tests
parentf3e3061a7ff0307c9ad0efc06b58b3ce8a9553cd (diff)
Fix a bug with footnotes in blocks/lists/etc.
This still not gives the "footnote and entry" are on same page invariant for blocks, but at least we do not get random extraneous page breaks anymore. Relevant issues: #1275, #1433
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/footnote-list.pngbin0 -> 1410 bytes
-rw-r--r--tests/typ/bugs/footnote-list.typ11
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/ref/bugs/footnote-list.png b/tests/ref/bugs/footnote-list.png
new file mode 100644
index 00000000..1b56f227
--- /dev/null
+++ b/tests/ref/bugs/footnote-list.png
Binary files differ
diff --git a/tests/typ/bugs/footnote-list.typ b/tests/typ/bugs/footnote-list.typ
new file mode 100644
index 00000000..ceece0ca
--- /dev/null
+++ b/tests/typ/bugs/footnote-list.typ
@@ -0,0 +1,11 @@
+// Test that footnotes in lists do not produce extraneous page breaks. The list
+// layout itself does not currently react to the footnotes layout, weakening the
+// "footnote and its entry are on the same page" invariant somewhat, but at
+// least there shouldn't be extra page breaks.
+
+---
+#set page(height: 100pt)
+#block(height: 50pt, width: 100%, fill: aqua)
+
+- #footnote[1]
+- #footnote[2]