From 2cdf1bc5bc2eaba590cf1dff3e12cc39aafb52e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Feb 2016 10:57:02 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/pretty.py b/src/calibre/ebooks/oeb/polish/pretty.py index 02c1ce987a..fddfaef0e7 100644 --- a/src/calibre/ebooks/oeb/polish/pretty.py +++ b/src/calibre/ebooks/oeb/polish/pretty.py @@ -177,7 +177,7 @@ def pretty_html_tree(container, root): # even if it has non block children. if (len(body) == 1 and not callable(body[0].tag) and isblock(body[0]) and not has_only_blocks(body[0]) and barename(body[0].tag) not in ( - 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6') and len(body[0]) > 0): + 'pre', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6') and len(body[0]) > 0): pretty_block(body[0], level=2) if container is not None: