mirror of
https://github.com/typst/typst
synced 2025-08-10 13:17:55 +08:00
Outline entries are not paragraphs
This commit is contained in:
parent
bb4fb5c89b
commit
e36266c0a0
@ -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
BIN
tests/ref/outline-par.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user