From 01584b07841f27494b897b4b398576a0bbbb9746 Mon Sep 17 00:00:00 2001 From: ldolse Date: Wed, 19 Jan 2011 01:32:22 +0800 Subject: [PATCH] removed rtf preprocess call --- src/calibre/ebooks/rtf/input.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/calibre/ebooks/rtf/input.py b/src/calibre/ebooks/rtf/input.py index d3d8c78dbd..ca6f2c7b95 100644 --- a/src/calibre/ebooks/rtf/input.py +++ b/src/calibre/ebooks/rtf/input.py @@ -321,9 +321,6 @@ class RTFInput(InputFormatPlugin): res = re.sub('\s*', '', res) res = re.sub('(?<=\n)\n{2}', u'

\u00a0

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