mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #175
This commit is contained in:
parent
61f84a63fc
commit
fbb1891812
@ -1215,7 +1215,7 @@ class HTMLConverter(object):
|
||||
if tag.contents:
|
||||
c = tag.contents[0]
|
||||
if isinstance(c, NavigableString):
|
||||
c = str(c).replace('\r\n', '\n').replace('\r', '\n')
|
||||
c = unicode(c).replace('\r\n', '\n').replace('\r', '\n')
|
||||
if c.startswith('\n'):
|
||||
c = c[1:]
|
||||
tag.contents[0] = NavigableString(c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user