mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-12 23:14:23 +01:00
fixed option definition for lrf & html input plugins
This commit is contained in:
parent
d0d1ff06dc
commit
dbb35b5823
2 changed files with 2 additions and 0 deletions
|
|
@ -491,6 +491,7 @@ def css_import_handler(self, base, href):
|
|||
return (None, raw)
|
||||
|
||||
def preprocess_html(self, options, html):
|
||||
self.options = options
|
||||
preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None))
|
||||
return preprocessor(html)
|
||||
|
||||
|
|
|
|||
|
|
@ -421,6 +421,7 @@ def convert(self, stream, options, file_ext, log,
|
|||
return os.path.abspath('content.opf')
|
||||
|
||||
def preprocess_html(self, options, html):
|
||||
self.options = options
|
||||
preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None))
|
||||
return preprocessor(html)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue