mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix empty paragraphs not being rendered
This commit is contained in:
parent
082aed8f86
commit
a83e99485a
@ -363,6 +363,10 @@ class Convert(object):
|
||||
wrapper = self.wrap_elems(spans, SPAN())
|
||||
wrapper.set('class', cls)
|
||||
|
||||
if not dest.text and len(dest) == 0:
|
||||
# Empty paragraph add a non-breaking space so that it is rendered
|
||||
# by WebKit
|
||||
dest.text = '\xa0'
|
||||
return dest
|
||||
|
||||
def wrap_elems(self, elems, wrapper):
|
||||
|
Loading…
x
Reference in New Issue
Block a user