Fix named pages when broken between two top-level children

Fix #507.
This commit is contained in:
Guillaume Ayoub 2018-01-23 00:12:16 +01:00
parent e1c88e3f60
commit be8e969031
1 changed files with 3 additions and 0 deletions

View File

@ -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