From f8f908ecd670f63ac07573d9ea330abfbca4ff3a Mon Sep 17 00:00:00 2001 From: ldolse Date: Fri, 19 Nov 2010 13:23:32 +0800 Subject: [PATCH] ... --- src/calibre/ebooks/rtf/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/rtf/input.py b/src/calibre/ebooks/rtf/input.py index d7619d471a..d0ef19ecd9 100644 --- a/src/calibre/ebooks/rtf/input.py +++ b/src/calibre/ebooks/rtf/input.py @@ -231,7 +231,7 @@ class RTFInput(InputFormatPlugin): # Replace newlines inserted by the 'empty_paragraphs' option in rtf2xml with html blank lines if not getattr(self.options, 'remove_paragraph_spacing', False): res = re.sub('\s*', '', res) - res = re.sub('\n{4}', u'\n

\u00a0

\n', res) + res = re.sub('(?<=\n)\n{2}', u'

\u00a0

\n', res) if self.options.preprocess_html: preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None)) res = preprocessor(res)