mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
ccd16987a4
commit
f0ee52cf5d
@ -171,7 +171,7 @@ def cleanup_markup(log, root, styles, dest_dir, detect_cover):
|
|||||||
if prefix:
|
if prefix:
|
||||||
prefix += '; '
|
prefix += '; '
|
||||||
p.set('style', prefix + 'page-break-after:always')
|
p.set('style', prefix + 'page-break-after:always')
|
||||||
p.text = NBSP
|
p.text = NBSP if not p.text else p.text
|
||||||
|
|
||||||
if detect_cover:
|
if detect_cover:
|
||||||
# Check if the first image in the document is possibly a cover
|
# Check if the first image in the document is possibly a cover
|
||||||
|
Loading…
x
Reference in New Issue
Block a user