mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 22:26:11 +01:00
Fix #175
This commit is contained in:
parent
61f84a63fc
commit
fbb1891812
1 changed files with 1 additions and 1 deletions
|
|
@ -1215,7 +1215,7 @@ def update_css(ncss, ocss):
|
|||
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…
Reference in a new issue