mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
3d4f18b916
Unless the Box is a PageBox or a MarginBox the new attribute `element` points to the html element (xml.etree.ElementTree.Element) where the Box stems from. This enables e.g. post-processing that depends on Element attributes, like 'class' or 'id'. Caution: Elements with no subelements will test as False! Test the element's existence with `if box.element is not None:`. Related to #434, #970. |
||
---|---|---|
.. | ||
css | ||
formatting_structure | ||
layout | ||
tests | ||
tools | ||
__init__.py | ||
__main__.py | ||
document.py | ||
draw.py | ||
fonts.py | ||
html.py | ||
images.py | ||
logger.py | ||
pdf.py | ||
stacking.py | ||
text.py | ||
urls.py | ||
VERSION |