mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix empty paragraphs with borders being rendered with an empty line inside the borders
This commit is contained in:
parent
1127fc805c
commit
d0aa1c3d95
@ -476,7 +476,7 @@ class Convert(object):
|
|||||||
wrapper = self.wrap_elems(spans, SPAN())
|
wrapper = self.wrap_elems(spans, SPAN())
|
||||||
wrapper.set('class', cls)
|
wrapper.set('class', cls)
|
||||||
|
|
||||||
if not dest.text and len(dest) == 0:
|
if not dest.text and len(dest) == 0 and not style.has_visible_border():
|
||||||
# Empty paragraph add a non-breaking space so that it is rendered
|
# Empty paragraph add a non-breaking space so that it is rendered
|
||||||
# by WebKit
|
# by WebKit
|
||||||
dest.text = NBSP
|
dest.text = NBSP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user