Fix language-dependant figure caption separator in outline (#5550)

This commit is contained in:
Laurenz 2024-12-08 19:36:04 +01:00 committed by GitHub
parent 67ef6066f4
commit 4729d3d3bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -308,6 +308,7 @@ impl Synthesize for Packed<FigureElem> {
// Fill the figure's caption.
let mut caption = elem.caption(styles);
if let Some(caption) = &mut caption {
caption.synthesize(engine, styles)?;
caption.push_kind(kind.clone());
caption.push_supplement(supplement.clone());
caption.push_numbering(numbering.clone());

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -289,3 +289,9 @@ HI#footnote.entry(clearance: 2.5em)[There]
)
#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])