diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index 5d91492875..a050ee3253 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -225,7 +225,7 @@ class EditorWidget(QWebView): # {{{ elems = [] for body in root.xpath('//body'): if body.text: - elems.append('
%s
'%body.text) + elems.append(body.text) elems += [html.tostring(x, encoding=unicode) for x in body if x.tag not in ('script', 'style')] @@ -233,6 +233,8 @@ class EditorWidget(QWebView): # {{{ ans = u'%s
'%ans ans = xml_replace_entities(ans) except: import traceback