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

Don't create new lines for floats with height = 0

This commit is contained in:
Guillaume Ayoub 2012-06-25 21:10:00 +02:00
parent 6bccfe7514
commit 4c824f7374

View File

@ -123,6 +123,9 @@ def avoid_collisions(document, box, containing_block, outer=True):
box_width = box.margin_width() if outer else box.border_width()
box_height = box.margin_height() if outer else box.border_height()
if box_height == 0:
return 0, 0, containing_block.width
while True:
colliding_shapes = [
shape for shape in excluded_shapes