diff --git a/src/calibre/ebooks/docx/cleanup.py b/src/calibre/ebooks/docx/cleanup.py index 941893ab4f..77533991cd 100644 --- a/src/calibre/ebooks/docx/cleanup.py +++ b/src/calibre/ebooks/docx/cleanup.py @@ -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