-
-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks.py BlockBox has no attribute index #1191
Comments
Hello! Isn’t this issue the same as #1168? |
Reason to crash is the same as in #1168. When WeasyPrint paginates a multi-column block, When trying to find an opportunity to break a multi-column box, Thus: AttributeError. The solution is skipping @liZe Are there more anonymous BlockBoxes without index in their non-laid-out parent lurking? Should we continue |
Hello, great developers of WeasyPrint. Thank you for developing a great library. I had the same problem yesterday. If the text is set to a two-column layout, the index attribute will appear to be lost depending on the page break position. As @Tontyna mentioned earlier, if you try to avoid the index attribute if it doesn't exist, the PDF will output without any problems. I'll patch the code here with Have a nice weekend! |
❤️
I wonder why columns, table elements, flex items are currently marked as in normal flow. |
@mag-chang Hi! If you’re still interested in this issue, could you please try c35a629 and see if it fixes your problem? Thank you! |
Dear WeasyPrint-Team,
one more crash reduced enough to report:
File "I:\xClients\WeasyPrint\weasyprint\layout\blocks.py", line 839
in find_earlier_page_break resume_at = (new_child.index, resume_at)
AttributeError: 'BlockBox' object has no attribute 'index'
Please let me know, if I can do anything different in preparing/reducing these examples to make your life easier.
Thanks again for your efforts!
I wish you a good weekend,
Johannes
The text was updated successfully, but these errors were encountered: