mirror of
https://github.com/typst/typst
synced 2025-08-14 23:18:32 +08:00
chore: rename parameter
This commit is contained in:
parent
4e12bb0623
commit
a315ad220c
@ -480,11 +480,11 @@ fn measure_prefix(
|
|||||||
/// entry with the given prefix inset.
|
/// entry with the given prefix inset.
|
||||||
fn compute_auto_indent(
|
fn compute_auto_indent(
|
||||||
introspector: Tracked<Introspector>,
|
introspector: Tracked<Introspector>,
|
||||||
outline_loc: Location,
|
bibliography_loc: Location,
|
||||||
styles: StyleChain,
|
styles: StyleChain,
|
||||||
prefix_inset: Option<Abs>,
|
prefix_inset: Option<Abs>,
|
||||||
) -> Option<Abs> {
|
) -> Option<Abs> {
|
||||||
let indent = query_prefix_width(introspector, outline_loc);
|
let indent = query_prefix_width(introspector, bibliography_loc);
|
||||||
let fallback = Em::new(1.2).resolve(styles);
|
let fallback = Em::new(1.2).resolve(styles);
|
||||||
prefix_inset.map(|p| p.max(indent.unwrap_or(fallback)))
|
prefix_inset.map(|p| p.max(indent.unwrap_or(fallback)))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user