mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
fix consecutive header row check
check if there is another header at the end, not if at the next row
This commit is contained in:
parent
e73c561f16
commit
fe08df8ee6
@ -221,7 +221,7 @@ impl<'a> GridLayouter<'a> {
|
|||||||
|
|
||||||
if self.upcoming_headers.get(consecutive_header_count).is_none_or(
|
if self.upcoming_headers.get(consecutive_header_count).is_none_or(
|
||||||
|h| {
|
|h| {
|
||||||
h.unwrap().start > y + 1
|
h.unwrap().start > first_header.unwrap().end
|
||||||
|| h.unwrap().level <= first_header.unwrap().level
|
|| h.unwrap().level <= first_header.unwrap().level
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user