mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
KF8 Output: Fix handling of input documents that have URL unsafe characters in the file names of their images. Fixes #1062477 (KF8 generation fails with images in PG epubs)
This commit is contained in:
parent
b6559b4f7d
commit
704219fb4f
@ -106,7 +106,7 @@ class KF8Writer(object):
|
||||
not used for fonts. '''
|
||||
|
||||
def pointer(item, oref):
|
||||
ref = item.abshref(oref)
|
||||
ref = urlnormalize(item.abshref(oref))
|
||||
idx = self.resources.item_map.get(ref, None)
|
||||
if idx is not None:
|
||||
is_image = self.resources.records[idx-1][:4] not in {b'FONT'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user