mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Document the danger of using parse_css in the polish books container
This commit is contained in:
parent
bc2220a26e
commit
76b3c38e03
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user