diff --git a/crates/typst-library/src/model/bibliography.rs b/crates/typst-library/src/model/bibliography.rs index 5eb2a6549..3be134ea7 100644 --- a/crates/typst-library/src/model/bibliography.rs +++ b/crates/typst-library/src/model/bibliography.rs @@ -480,11 +480,11 @@ fn measure_prefix( /// entry with the given prefix inset. fn compute_auto_indent( introspector: Tracked, - outline_loc: Location, + bibliography_loc: Location, styles: StyleChain, prefix_inset: Option, ) -> Option { - let indent = query_prefix_width(introspector, outline_loc); + let indent = query_prefix_width(introspector, bibliography_loc); let fallback = Em::new(1.2).resolve(styles); prefix_inset.map(|p| p.max(indent.unwrap_or(fallback))) }