From 7c61ccac71fbdc4fd6fe905f86703b48a53c8d06 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 13 Mar 2024 14:46:00 +0100 Subject: Fix non-terminating loop in flow layout (#3652) --- tests/ref/bugs/3641-float-loop.png | Bin 0 -> 3904 bytes tests/typ/bugs/3641-float-loop.typ | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/ref/bugs/3641-float-loop.png create mode 100644 tests/typ/bugs/3641-float-loop.typ (limited to 'tests') diff --git a/tests/ref/bugs/3641-float-loop.png b/tests/ref/bugs/3641-float-loop.png new file mode 100644 index 00000000..092b2ff5 Binary files /dev/null and b/tests/ref/bugs/3641-float-loop.png differ diff --git a/tests/typ/bugs/3641-float-loop.typ b/tests/typ/bugs/3641-float-loop.typ new file mode 100644 index 00000000..4021fb4f --- /dev/null +++ b/tests/typ/bugs/3641-float-loop.typ @@ -0,0 +1,11 @@ +// Flow layout should terminate! +// https://github.com/typst/typst/issues/3641 +// +// This is not yet ideal: The heading should not move to the second page, but +// that's a separate bug and not a regression. + +--- +#set page(height: 40pt) + += Heading +#lorem(6) -- cgit v1.2.3