RTF Input: Fix regression that broke the Preprocess HTML option

This commit is contained in:
Kovid Goyal 2011-01-10 10:44:09 -07:00
parent ef15ee03a3
commit 03f70c156c
3 changed files with 7 additions and 7 deletions

View File

@ -296,7 +296,7 @@ class RTFInput(InputFormatPlugin):
u'<p>\u00a0</p>\n'.encode('utf-8'), res)
if self.opts.preprocess_html:
preprocessor = PreProcessor(self.opts, log=getattr(self, 'log', None))
res = preprocessor(res)
res = preprocessor(res.decode('utf-8')).encode('utf-8')
f.write(res)
self.write_inline_css(inline_class, border_styles)
stream.seek(0)