rennat / pynliner

Python CSS-to-inline-styles conversion tool for HTML using BeautifulSoup and cssutils
http://pythonhosted.org/pynliner/
181 stars 93 forks source link

add support for nth-child(an+b) and fix identical element string bug. #50

Closed tadonis closed 8 years ago

tadonis commented 8 years ago

add support for

unit test is added too.

rennat commented 8 years ago

This looks great! Thanks for adding it! It'll get merged into the next release (still don't know when that is)

tadonis commented 8 years ago

i think this can improve in some ways:

  1. Some psuedo classes not still supported, add support for them.
  2. Use some methods of soup's to replace methods in soupselect.py, soup support some simple select(soup.select), soup element has defined some checker functions too.
rennat commented 8 years ago

I'm merging #51 for it's simplicity but I'd love to see another PR from the new master with your nth-child support