DOCX Input: Fix text from some paragraphs not being converted if the paragraph contains an inline forced page break and no formatted text or line breaks. Fixes #1296817 [Private bug](https://bugs.launchpad.net/calibre/+bug/1296817) [Private bug](https://bugs.launchpad.net/calibre/+bug/1296817)

This commit is contained in:
Kovid Goyal 2014-03-26 10:58:29 +05:30
parent ccd16987a4
commit f0ee52cf5d

View File

@ -171,7 +171,7 @@ def cleanup_markup(log, root, styles, dest_dir, detect_cover):
if prefix:
prefix += '; '
p.set('style', prefix + 'page-break-after:always')
p.text = NBSP
p.text = NBSP if not p.text else p.text
if detect_cover:
# Check if the first image in the document is possibly a cover