From dbb35b5823e9486817dc5e4e689dbfcacb8c29ef Mon Sep 17 00:00:00 2001 From: ldolse Date: Fri, 17 Sep 2010 23:42:41 +0800 Subject: [PATCH] fixed option definition for lrf & html input plugins --- src/calibre/ebooks/html/input.py | 1 + src/calibre/ebooks/lrf/input.py | 1 + 2 files changed, 2 insertions(+) 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 @@ 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) 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 @@ 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)