From ada30cd5b14d97ac5b0bc4893b5bce797b53a3e9 Mon Sep 17 00:00:00 2001 From: wznmickey Date: Tue, 5 Nov 2024 03:27:25 -0500 Subject: Fix unstoppable empty footnote loop (#5354) (#5364) --- .../issue-5354-footnote-empty-frame-infinite-loop.png | Bin 0 -> 2342 bytes tests/suite/layout/flow/footnote.typ | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png (limited to 'tests') diff --git a/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png new file mode 100644 index 00000000..acad56b6 Binary files /dev/null and b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png differ diff --git a/tests/suite/layout/flow/footnote.typ b/tests/suite/layout/flow/footnote.typ index 3230c3da..63602351 100644 --- a/tests/suite/layout/flow/footnote.typ +++ b/tests/suite/layout/flow/footnote.typ @@ -286,3 +286,8 @@ B #footnote[b] --- issue-4454-footnote-ref-numbering --- // Test that footnote references are numbered correctly. A #footnote(numbering: "*")[B], C @fn, D @fn, E @fn. + +--- issue-5354-footnote-empty-frame-infinite-loop --- +// Test whether an empty footnote would cause infinite loop +#show footnote.entry: it => {} +#lorem(3) #footnote[A footnote] -- cgit v1.2.3