This commit is contained in:
Kovid Goyal 2010-12-23 12:26:03 -07:00
parent bb0e0169ee
commit 853f63934f

View File

@ -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