1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Fix condition for column descendants

Related to #659.
This commit is contained in:
Guillaume Ayoub 2018-08-02 15:58:27 +02:00
parent 382e07dc6d
commit 26109b25a3

View File

@ -189,6 +189,8 @@ def columns_layout(context, box, max_position_y, skip_stack, containing_block,
yield box
if hasattr(box, 'descendants') and box.is_in_normal_flow():
for child in box.children:
if child.is_in_normal_flow():
yield child
for grand_child in column_descendants(child):
yield grand_child