chore: rename parameter

This commit is contained in:
xkevio 2025-03-04 17:54:31 +01:00
parent 4e12bb0623
commit a315ad220c

View File

@ -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)))
} }