From 433270f20ead59bc013855d5b1403e43e1f50a02 Mon Sep 17 00:00:00 2001 From: Lee Date: Mon, 28 Mar 2011 17:24:45 +0800 Subject: [PATCH] add another type of scene break to the scene break formatting logic --- src/calibre/ebooks/conversion/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/conversion/utils.py b/src/calibre/ebooks/conversion/utils.py index f1f2f87293..1546644f95 100644 --- a/src/calibre/ebooks/conversion/utils.py +++ b/src/calibre/ebooks/conversion/utils.py @@ -764,6 +764,7 @@ class HeuristicProcessor(object): # Multiple sequential blank paragraphs are merged with appropriate margins # If non-blank scene breaks exist they are center aligned and styled with appropriate margins. if getattr(self.extra_opts, 'format_scene_breaks', False): + html = re.sub('(?i)]*>\s*\s*', '

', html) html = self.detect_whitespace(html) html = self.detect_soft_breaks(html) blanks_count = len(self.any_multi_blank.findall(html))