This commit is contained in:
Kovid Goyal 2010-12-23 12:12:44 -07:00
parent 115ecd5882
commit 574a66b569

View File

@ -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')]