Turns CSS blocks into style attributes

Edit Package python-premailer
https://premailer.io

Premailer is a Python library based on libxml which can analyze a HTML document and extract its CSS style sheets and then for all CSS seletors defined, it finds the DOM nodes and puts style attributes in instead.

Refresh
Refresh
Source Files
Filename Size Changed
premailer-3.10.0.tar.gz 0000024342 23.8 KB
python-premailer.changes 0000001001 1001 Bytes
python-premailer.spec 0000001968 1.92 KB
Revision 3 (latest revision is 4)
Daniel Garcia's avatar Daniel Garcia (dgarcia) accepted request 1008043 from Yogalakshmi Arunachalam's avatar Yogalakshmi Arunachalam (yarunachalam) (revision 3)
- Update to version 3.10.0
  New option session=None to provide the session used for making http requests.
  Bug fix: inlined styles are no longer sorted alphabetically. This preserves the input rule order so that premailer does not break style
  precedence where order is significant, e.g.
  div {
    /* Padding on all sides is 10px. */
    padding-left: 5px;
    padding: 10px;
  }
  div {
    /* Padding on the left side is 5px, on other sides is 10px. */
    padding: 10px;
    padding-left: 5px;
  }
  Prior to this fix premailer would swap the rules in the first example to look like the second.
  Other version change log https://github.com/peterbe/premailer/blob/master/CHANGES.rst
Comments 0
openSUSE Build Service is sponsored by