From 231a573e923b814d1a44582be02f459038145421 Mon Sep 17 00:00:00 2001 From: Lee Date: Sat, 16 Jun 2012 11:36:01 +0800 Subject: [PATCH] stop creating scene breaks on every page break when converting from pdf - forum thread http://www.mobileread.com/forums/showthread.php?t=181529 --- src/calibre/ebooks/conversion/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/conversion/preprocess.py b/src/calibre/ebooks/conversion/preprocess.py index b72b5e345e..72032cb998 100644 --- a/src/calibre/ebooks/conversion/preprocess.py +++ b/src/calibre/ebooks/conversion/preprocess.py @@ -446,7 +446,7 @@ class HTMLPreProcessor(object): # Remove page links (re.compile(r'', re.IGNORECASE), lambda match: ''), # Remove
tags - (re.compile(r'', re.IGNORECASE), lambda match: '
'), + (re.compile(r'', re.IGNORECASE), lambda match: ''), # Remove gray background (re.compile(r']+>'), lambda match : ''),