From 0d39fa021f2aa84c3302242082ea3bf23cc7f99d Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Tue, 26 Sep 2023 16:59:51 +0200 Subject: Prevent block spacing with placed elements (#2244) --- tests/typ/bugs/place-spacing.typ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/typ/bugs/place-spacing.typ (limited to 'tests/typ') diff --git a/tests/typ/bugs/place-spacing.typ b/tests/typ/bugs/place-spacing.typ new file mode 100644 index 00000000..4d7b5fe3 --- /dev/null +++ b/tests/typ/bugs/place-spacing.typ @@ -0,0 +1,15 @@ +// Test that placed elements don't add extra block spacing. + +--- +#show figure: set block(spacing: 4em) + +Paragraph before float. +#figure(rect(), placement: bottom) +Paragraph after float. + +--- +#show place: set block(spacing: 4em) + +Paragraph before place. +#place(rect()) +Paragraph after place. -- cgit v1.2.3