WeasyPrint 0.8, tinycss and cssselect
- Simon Sapin
- 2012-05-07 @ 17:24
I’m happy to announce a new version of WeasyPrint as well as two new but
As usual, WeasyPrint 0.8 has some new features. The big one is
*automatic layout* for tables. Roughly, columns will get their width
determined by the amount of content.
The details are in the changelog:
Internally, this version uses tinycss and cssselect.
tinycss is a new CSS parser I wrote from scratch as a smaller and faster
alternative to cssutils. It is design to be easily extended for new
syntax such as new at-rules in various CSS 3 modules.
As to cssselect, I took over its maintenance after extracting it from
lxml. I made many internal clean-ups and separated HTML-specific stuff.
It is now and independant project and supports almost all Level 3 selectors.
As always, feedback on any of these three projects is greatly appreciated.