mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
588f0a6ef1
commit
1d092d836b
@ -42,8 +42,8 @@ def update_internal_links(mobi8_reader):
|
|||||||
mr.header.codec) + suffix
|
mr.header.codec) + suffix
|
||||||
tag = posfid_index_pattern.sub(replacement, tag, 1)
|
tag = posfid_index_pattern.sub(replacement, tag, 1)
|
||||||
srcpieces[j] = tag
|
srcpieces[j] = tag
|
||||||
part = ''.join([x.decode(mr.header.codec) for x in srcpieces])
|
raw = b''.join(srcpieces)
|
||||||
parts.append(part)
|
parts.append(raw.decode(mr.header.codec))
|
||||||
|
|
||||||
# All parts are now unicode and have no internal links
|
# All parts are now unicode and have no internal links
|
||||||
return parts
|
return parts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user