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

View File

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