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:
PgBiel 2025-04-06 14:01:25 -03:00
parent e73c561f16
commit fe08df8ee6

View File

@ -221,7 +221,7 @@ impl<'a> GridLayouter<'a> {
if self.upcoming_headers.get(consecutive_header_count).is_none_or(
|h| {
h.unwrap().start > y + 1
h.unwrap().start > first_header.unwrap().end
|| h.unwrap().level <= first_header.unwrap().level
},
) {