mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix language-dependant figure caption separator in outline (#5550)
This commit is contained in:
parent
67ef6066f4
commit
4729d3d3bd
@ -308,6 +308,7 @@ impl Synthesize for Packed<FigureElem> {
|
|||||||
// Fill the figure's caption.
|
// Fill the figure's caption.
|
||||||
let mut caption = elem.caption(styles);
|
let mut caption = elem.caption(styles);
|
||||||
if let Some(caption) = &mut caption {
|
if let Some(caption) = &mut caption {
|
||||||
|
caption.synthesize(engine, styles)?;
|
||||||
caption.push_kind(kind.clone());
|
caption.push_kind(kind.clone());
|
||||||
caption.push_supplement(supplement.clone());
|
caption.push_supplement(supplement.clone());
|
||||||
caption.push_numbering(numbering.clone());
|
caption.push_numbering(numbering.clone());
|
||||||
|
BIN
tests/ref/issue-5370-figure-caption-separator-outline.png
Normal file
BIN
tests/ref/issue-5370-figure-caption-separator-outline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@ -289,3 +289,9 @@ HI#footnote.entry(clearance: 2.5em)[There]
|
|||||||
)
|
)
|
||||||
|
|
||||||
#c
|
#c
|
||||||
|
|
||||||
|
--- issue-5370-figure-caption-separator-outline ---
|
||||||
|
// Test that language-dependant caption separator is respected in outline.
|
||||||
|
#outline(title: none, target: figure)
|
||||||
|
#set text(lang: "ru")
|
||||||
|
#figure(rect(), caption: [Rectangle])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user