mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -04:00
Document the danger of using parse_css in the polish books container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user