fixed option definition for lrf & html input plugins

This commit is contained in:
ldolse 2010-09-17 23:42:41 +08:00
parent d0d1ff06dc
commit dbb35b5823
2 changed files with 2 additions and 0 deletions

View file

@ -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)

View file

@ -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)