From 6f07157a6c77138108978bbe35c8b5a3a3ba5cc1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Nov 2013 16:21:56 +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 893fb569f6..94db83571d 100644 --- a/src/calibre/ebooks/oeb/polish/pretty.py +++ b/src/calibre/ebooks/oeb/polish/pretty.py @@ -106,7 +106,7 @@ def has_only_blocks(x): if x.text and not isspace(x.text): return False for child in x: - if not isblock(child) or (child.tail and isspace(child.tail)): + if not isblock(child) or (child.tail and not isspace(child.tail)): return False return True