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