Document the danger of using parse_css in the polish books container

This commit is contained in:
Kovid Goyal 2013-07-26 10:47:56 +05:30
parent bc2220a26e
commit 76b3c38e03

View File

@ -202,6 +202,9 @@ class Container(object):
return data
def parse_css(self, data, fname):
''' WARNING: This modifies the CSS tripping out @page rules, comments
etc. If you wish to write back the css, you should override the
css_preprocessor with a dummy one. '''
from cssutils import CSSParser, log
log.setLevel(logging.WARN)
log.raiseExceptions = False