mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
KF8 Input: Do not link to font files that we failed to properly extract
This commit is contained in:
parent
ce90b49fb5
commit
341f0d73c7
@ -154,6 +154,8 @@ def update_flow_links(mobi8_reader, resource_map, log):
|
||||
'valid font in %s' % (num, tag))
|
||||
else:
|
||||
replacement = '"%s"'%('../'+ href)
|
||||
if href.endswith('.dat'):
|
||||
replacement = 'unable-to-extract.ttf'
|
||||
tag = font_index_pattern.sub(replacement, tag, 1)
|
||||
|
||||
# process links to other css pieces
|
||||
|
Loading…
x
Reference in New Issue
Block a user