enabled preprocesing for LRF input

This commit is contained in:
ldolse 2010-09-15 15:43:53 +08:00
parent dc3641784d
commit 19d7b21165

View File

@ -12,6 +12,7 @@ from copy import deepcopy
from lxml import etree
from calibre.customize.conversion import InputFormatPlugin
from calibre.ebooks.conversion.utils import PreProcessor
from calibre import guess_type
class Canvas(etree.XSLTExtension):
@ -419,4 +420,9 @@ class LRFInput(InputFormatPlugin):
styles.write()
return os.path.abspath('content.opf')
def preprocess_html(self, html):
preprocessor = PreProcessor(log=getattr(self, 'log', None))
return preprocessor(html)