Outline entries are not paragraphs

This commit is contained in:
Laurenz 2025-01-23 17:59:14 +01:00
parent bb4fb5c89b
commit e36266c0a0
3 changed files with 9 additions and 1 deletions

View File

@ -297,7 +297,6 @@ impl ShowSet for Packed<OutlineElem> {
let mut out = Styles::new();
out.set(HeadingElem::set_outlined(false));
out.set(HeadingElem::set_numbering(None));
out.set(ParElem::set_first_line_indent(Em::new(0.0).into()));
out.set(ParElem::set_justify(false));
out.set(BlockElem::set_above(Smart::Custom(ParElem::leading_in(styles).into())));
// Makes the outline itself available to its entries. Should be

BIN
tests/ref/outline-par.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -242,6 +242,15 @@ A
#outline(target: metadata)
#metadata("hello")
--- outline-par ---
// Ensure that an outline does not produce paragraphs.
#show par: highlight
#outline()
= A
= B
= C
--- issue-2048-outline-multiline ---
// Without the word joiner between the dots and the page number,