diff --git a/src/calibre/library/comments.py b/src/calibre/library/comments.py index ffb6282d9b..952cbeb79d 100644 --- a/src/calibre/library/comments.py +++ b/src/calibre/library/comments.py @@ -163,15 +163,12 @@ def find_tests(): '

lineone

\n

linetwo

'), ('a b&c\nf', - '

a b&c
f

'), + '

a b&c
f

'), ('a b\n\ncd', '

a b

cd

'), ]: cval = comments_to_html(pat) - # normalize
representations produced by different - # versions of html5-parser - cval = cval.replace('

', '
').replace('
', '
') self.assertEqual(cval, val) return unittest.defaultTestLoader.loadTestsFromTestCase(Test)