We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ weasyprint https://www.nrk.no/ index.pdf ZeroDivisionError: division by zero
https://github.com/Kozea/WeasyPrint/blob/main/weasyprint/layout/column.py#L53
count = 2 box_width = 92.873046875 gap = 20.0 width = 160.0 count = min(count, int(floor((box.width + gap) / (width + gap)))) # floor -> math.ceil (?) width = (box.width + gap) / count - gap # count=0 # width = (box.width + gap) / (count - gap) # Possible intention A # width = ((box.width + gap) / count) - gap # Possible intention B
The text was updated successfully, but these errors were encountered:
2d7c9a2
Thanks a lot for your report! It’s fixed and tested.
Sorry, something went wrong.
No branches or pull requests
https://github.com/Kozea/WeasyPrint/blob/main/weasyprint/layout/column.py#L53
The text was updated successfully, but these errors were encountered: