Skip to content

Commit

Permalink
Fix placeholder removal
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed May 25, 2024
1 parent 60b64c0 commit b45b77b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weasyprint/layout/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@ def block_container_layout(context, box, bottom_space, skip_stack,
if (box_is_fragmented and
avoid_page_break(box.style['break_inside'], context) and
not page_is_empty):
remove_placeholders(context, box.children[skip:], absolute_boxes, fixed_boxes)
remove_placeholders(
context, [*new_children, *box.children[skip:]], absolute_boxes, fixed_boxes)
return None, None, {'break': 'any', 'page': None}, [], False, max_lines

for key, value in broken_out_of_flow.items():
Expand Down

0 comments on commit b45b77b

Please sign in to comment.