mirror of
https://github.com/typst/typst
synced 2025-08-13 22:57:56 +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.
|
||||
fn compute_auto_indent(
|
||||
introspector: Tracked<Introspector>,
|
||||
outline_loc: Location,
|
||||
bibliography_loc: Location,
|
||||
styles: StyleChain,
|
||||
prefix_inset: 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);
|
||||
prefix_inset.map(|p| p.max(indent.unwrap_or(fallback)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user