mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-16 03:03:15 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ def p_parent(x):
|
|||
wrapper = self.wrap_elems(spans, SPAN())
|
||||
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
|
||||
# by WebKit
|
||||
dest.text = NBSP
|
||||
|
|
|
|||
Loading…
Reference in a new issue