mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:33:42 +02:00
removed rtf preprocess call
This commit is contained in:
parent
b4c5cd0122
commit
01584b0784
1 changed files with 0 additions and 3 deletions
|
|
@ -321,9 +321,6 @@ def convert(self, stream, options, file_ext, log,
|
|||
res = re.sub('\s*<body>', '<body>', res)
|
||||
res = re.sub('(?<=\n)\n{2}',
|
||||
u'<p>\u00a0</p>\n'.encode('utf-8'), res)
|
||||
if self.opts.enable_heuristics:
|
||||
preprocessor = PreProcessor(self.opts, log=getattr(self, 'log', None))
|
||||
res = preprocessor(res.decode('utf-8')).encode('utf-8')
|
||||
f.write(res)
|
||||
self.write_inline_css(inline_class, border_styles)
|
||||
stream.seek(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue