Skip to content

Commit

Permalink
Fix named pages when broken between two top-level children
Browse files Browse the repository at this point in the history
Fix #507.
  • Loading branch information
liZe committed Jan 30, 2018
1 parent e1c88e3 commit be8e969
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions weasyprint/layout/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,9 @@ def block_container_layout(context, box, max_position_y, skip_stack,
min(new_box.height, new_box.max_height),
new_box.min_height)

if next_page['page'] is None:
next_page['page'] = new_box.page_values()[1]

return new_box, resume_at, next_page, adjoining_margins, collapsing_through


Expand Down

0 comments on commit be8e969

Please sign in to comment.