From 574a66b569b3163172680fceb9a315d00ed9dd8f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Dec 2010 12:12:44 -0700 Subject: [PATCH] ... --- src/calibre/gui2/comments_editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index 5d91492875..10df79073a 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -226,6 +226,7 @@ class EditorWidget(QWebView): # {{{ for body in root.xpath('//body'): if body.text: elems.append('

%s

'%body.text) + body.text = '' elems += [html.tostring(x, encoding=unicode) for x in body if x.tag not in ('script', 'style')]