mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-09 11:23:43 -04:00
Fix a bug in KEPUB markup removal when there are empty kobo spans
This commit is contained in:
parent
d57f3c0a07
commit
d811b6364a
@ -271,7 +271,7 @@ def unwrap(span: etree.Element) -> None:
|
||||
if len(span):
|
||||
p.insert(idx, span[0])
|
||||
else:
|
||||
text = span.text + (span.tail or '')
|
||||
text = (span.text or '') + (span.tail or '')
|
||||
if idx > 0:
|
||||
prev = p[idx-1]
|
||||
prev.tail = (prev.tail or '') + text
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user