mirror of
https://github.com/typst/typst
synced 2025-05-20 03:55:29 +08:00
Fix formatting issue
This commit is contained in:
parent
7f9adfac22
commit
422eb36f16
@ -502,9 +502,13 @@ pub fn commit(
|
|||||||
|
|
||||||
if justifiables > 0 && remaining > Abs::zero() {
|
if justifiables > 0 && remaining > Abs::zero() {
|
||||||
// Underfull line, distribute the extra space.
|
// Underfull line, distribute the extra space.
|
||||||
extra_microjustification = (remaining / microjustifiables as f64).min(p.config.microjustification);
|
extra_microjustification =
|
||||||
|
(remaining / microjustifiables as f64).min(p.config.microjustification);
|
||||||
|
|
||||||
|
extra_justification = (remaining
|
||||||
|
- extra_microjustification * microjustifiables as f64)
|
||||||
|
/ justifiables as f64;
|
||||||
|
|
||||||
extra_justification = (remaining - extra_microjustification * microjustifiables as f64) / justifiables as f64;
|
|
||||||
remaining = Abs::zero();
|
remaining = Abs::zero();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user