mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
LIT Output: Fix regression in 3.41 caused by py3 porting that broke conversion of some files to LIT. Fixes #1837561 [Lit conversion error (Conversion options changed from default)](https://bugs.launchpad.net/calibre/+bug/1837561)
This commit is contained in:
parent
9210902218
commit
80c6de0eb9
@ -721,6 +721,8 @@ class LitWriter(object):
|
||||
dchunks.append(dchunk.getvalue())
|
||||
dcounts.append(dcount)
|
||||
if ichunk:
|
||||
if not isinstance(name, bytes):
|
||||
name = name.encode('utf-8')
|
||||
ichunk.write(decint(len(name)))
|
||||
ichunk.write(name)
|
||||
ichunk.write(decint(cid))
|
||||
|
Loading…
x
Reference in New Issue
Block a user