diff --git a/src/calibre/ebooks/html/input.py b/src/calibre/ebooks/html/input.py index 8b94fd83ec..e29ebd4554 100644 --- a/src/calibre/ebooks/html/input.py +++ b/src/calibre/ebooks/html/input.py @@ -491,6 +491,7 @@ class HTMLInput(InputFormatPlugin): return (None, raw) def preprocess_html(self, options, html): + self.options = options preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None)) return preprocessor(html) diff --git a/src/calibre/ebooks/lrf/input.py b/src/calibre/ebooks/lrf/input.py index cdc8fa75c2..70529c0a04 100644 --- a/src/calibre/ebooks/lrf/input.py +++ b/src/calibre/ebooks/lrf/input.py @@ -421,6 +421,7 @@ class LRFInput(InputFormatPlugin): 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)