mirror of
https://github.com/typst/typst
synced 2025-08-23 19:24:14 +08:00
improve check to pull next repeating footer
This commit is contained in:
parent
7e2d1d1875
commit
f11d6ed0eb
@ -518,10 +518,9 @@ impl<'a> GridLayouter<'a> {
|
|||||||
|| self
|
|| self
|
||||||
.upcoming_sorted_footers
|
.upcoming_sorted_footers
|
||||||
.first()
|
.first()
|
||||||
.is_none_or(|f| f.level >= footer.level)
|
.is_some_and(|f| f.level >= footer.level)
|
||||||
{
|
{
|
||||||
self.prepare_next_repeating_footers(false, engine)?;
|
self.prepare_next_repeating_footers(false, engine)?;
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user