mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-03 23:48:07 +03:00
ad6e0d729f
The primary change here is that the column calculation algorithm now attempts to render columns as if they were the full remaining height on the page, rather than to render the entire content regardless of how long the page is. The worst-case behavior is effectively the same as that of the previous algorithm (as at least one additional pass would be required to determine how high balanced columns should be, but this applies in both cases), but if content would not fit on the page, this can bail and set the page immediately, rather than continuing significantly more calculations. As an associated benefit, this closes #1020, as we now handle multiple column breaks (which would force a page break) correctly. A test for this behavior is included. |
||
---|---|---|
.. | ||
draw | ||
layout | ||
resources | ||
__init__.py | ||
conftest.py | ||
test_acid2.py | ||
test_api.py | ||
test_boxes.py | ||
test_counters.py | ||
test_css_descriptors.py | ||
test_css_validation.py | ||
test_css.py | ||
test_float.py | ||
test_fonts.py | ||
test_pdf.py | ||
test_presentational_hints.py | ||
test_stacking.py | ||
test_target.py | ||
test_text.py | ||
test_unicode.py | ||
test_variables.py | ||
testing_utils.py |