You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going from v60.2 to v61, there is an issue with content being cut off at one page. It appears to be related to minor rounding errors in the "Letter" page size that causes the below newly added code to falsely think the content is overflowing.
Thanks for reporting this issue. A lot of rounding errors have been fixed in the past to detect overflow on pages, that’s another case we have to handle.
Going from v60.2 to v61, there is an issue with content being cut off at one page. It appears to be related to minor rounding errors in the "Letter" page size that causes the below newly added code to falsely think the content is overflowing.
I have made a replit here
https://replit.com/@mlisitsa/Python-Weasyprint-Bug-Print-Cut-to-Single-Page#script.py
The issue occurs when you have
body {height: 100%}
and@page {size: letter, margin: 15mm}
.The offending code looks to be bc97131, where the
resume_at
gets set toNone
, even though there is more content in thebody
tag.WeasyPrint/weasyprint/layout/block.py
Lines 743 to 750 in 1ac1594
The resume_at then gets returned eventually to the make_page function
https://github.com/Kozea/WeasyPrint/blob/1ac1594cf3fe326ff09c4035d158b65fdc684b71/weasyprint/layout/page.py#L645-650
When I debugged it with
Letter
, you have the calculated position_y is approximately equal but ever so slightly bigger.When using
A4
page size, they are the same, and content prints correctly over multiple pagesThe text was updated successfully, but these errors were encountered: