mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bb0e0169ee
commit
853f63934f
@ -51,7 +51,7 @@ def comments_to_html(comments):
|
|||||||
if not isinstance(comments, unicode):
|
if not isinstance(comments, unicode):
|
||||||
comments = comments.decode(preferred_encoding, 'replace')
|
comments = comments.decode(preferred_encoding, 'replace')
|
||||||
|
|
||||||
if comments.startswith('<'):
|
if comments.lstrip().startswith('<'):
|
||||||
# Comment is already HTML do not mess with it
|
# Comment is already HTML do not mess with it
|
||||||
return comments
|
return comments
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user