mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion: Convert <br> tags with text in them into <divs> as ADE cannot handle them. Fixes #794427 (Private bug)
This commit is contained in:
parent
51546075f4
commit
6d2208759c
@ -1055,6 +1055,12 @@ class Manifest(object):
|
||||
and len(a) == 0 and not a.text:
|
||||
remove_elem(a)
|
||||
|
||||
# Convert <br>s with content into paragraphs as ADE can't handle
|
||||
# them
|
||||
for br in xpath(data, '//h:br'):
|
||||
if len(br) > 0 or br.text:
|
||||
br.tag = XHTML('div')
|
||||
|
||||
return data
|
||||
|
||||
def _parse_txt(self, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user