mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
115ecd5882
commit
574a66b569
@ -226,6 +226,7 @@ class EditorWidget(QWebView): # {{{
|
||||
for body in root.xpath('//body'):
|
||||
if body.text:
|
||||
elems.append('<p>%s</p>'%body.text)
|
||||
body.text = ''
|
||||
elems += [html.tostring(x, encoding=unicode) for x in body if
|
||||
x.tag not in ('script', 'style')]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user