From 853f63934fbe81bda841e34d07735cb8b90db5b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Dec 2010 12:26:03 -0700 Subject: [PATCH] ... --- src/calibre/library/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/comments.py b/src/calibre/library/comments.py index e78b815857..5d6c43f343 100644 --- a/src/calibre/library/comments.py +++ b/src/calibre/library/comments.py @@ -51,7 +51,7 @@ def comments_to_html(comments): if not isinstance(comments, unicode): comments = comments.decode(preferred_encoding, 'replace') - if comments.startswith('<'): + if comments.lstrip().startswith('<'): # Comment is already HTML do not mess with it return comments