Skip to content

Commit

Permalink
Break before footer
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Aug 20, 2019
1 parent af6673d commit fcda627
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions weasyprint/layout/tables.py
Expand Up @@ -266,6 +266,9 @@ def body_groups_layout(skip_stack, position_y, max_position_y,
for i, group in enumerate(table.children[skip:]):
index_group = i + skip

if group.is_header or group.is_footer:
continue

if new_table_children:
page_break = block_level_page_break(
new_table_children[-1], group)
Expand All @@ -274,8 +277,6 @@ def body_groups_layout(skip_stack, position_y, max_position_y,
resume_at = (index_group, None)
break

if group.is_header or group.is_footer:
continue
new_group, resume_at, next_page = group_layout(
group, position_y, max_position_y, page_is_empty, skip_stack)
skip_stack = None
Expand Down

0 comments on commit fcda627

Please sign in to comment.