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
$ weasyprint test-col.html test-col.pdf
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/weasyprint", line 8, in<module>sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/weasyprint/__main__.py", line 183, in main
html.write_pdf(output, **options)
File "/usr/lib/python3.12/site-packages/weasyprint/__init__.py", line 259, in write_pdf
self.render(font_config, counter_style, **options)
File "/usr/lib/python3.12/site-packages/weasyprint/document.py", line 400, in write_pdf
pdf = generate_pdf(self, target, zoom, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/weasyprint/pdf/__init__.py", line 190, in generate_pdf
page.paint(stream, scale)
File "/usr/lib/python3.12/site-packages/weasyprint/document.py", line 99, in paint
draw_page(self._page_box, stream)
File "/usr/lib/python3.12/site-packages/weasyprint/draw.py", line 67, in draw_page
draw_stacking_context(stream, stacking_context)
File "/usr/lib/python3.12/site-packages/weasyprint/draw.py", line 170, in draw_stacking_context
draw_stacking_context(stream, child_context)
File "/usr/lib/python3.12/site-packages/weasyprint/draw.py", line 144, in draw_stacking_context
draw_border(stream, block)
File "/usr/lib/python3.12/site-packages/weasyprint/draw.py", line 426, in draw_border
gap = percentage(box.style['column_gap'], box.width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/weasyprint/layout/percent.py", line 17, in percentage
elif value.unit == 'px':
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'unit'
The text was updated successfully, but these errors were encountered:
liZe
added
the
crash
Problems preventing documents from being rendered
label
Aug 1, 2024
Thanks for the report! It’s been introduced by the grid layout support, for which the column-gap property has been adapted to follow the new Box Alignment Module.
(Possibly related to old issue #60.) With Weasyprint v62.3 (latest as of now) on Linux, using
column-rule
chokes on size unit.MWE:
Command:
The text was updated successfully, but these errors were encountered: