Closed ananelson closed 13 years ago
A solid improvement! I think the log assignment should be moved to the Pynliner constructor as a keyword argument that defaults to None
for consistency. Then please add a test to show a usage example and I'll pull it in. Thanks for the patch!
Log assignment moved to Pynliner constructor and usage example added to tests, let me know if you need any tweaks.
looks good to me, thanks!
I've added a few lines of code in pynliner/init.py which let you specify a custom log for cssutils. This prevents confusing/annoying error messages like:
ERROR Property: Invalid value for "CSS Fonts Module Level 3 @font-face properties/CSS Level 2.1" property: italic [13:10: font-weight]
from being written to stderr. I've written this so the default behaviour is unchanged, but if you specify a log then this is passed to cssutils.
For example, here is how I use this:
Sorry for the 2 commits, I accidentally committed the .swp file first time around.