mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use the EPUB version specific mime type when embedding fonts
This commit is contained in:
parent
23b7b7ee5f
commit
709f5343a0
@ -938,7 +938,7 @@ class Container(ContainerBase): # {{{
|
|||||||
name. Ensures uniqueness of href and id automatically. Returns
|
name. Ensures uniqueness of href and id automatically. Returns
|
||||||
generated item.'''
|
generated item.'''
|
||||||
id_prefix = id_prefix or 'id'
|
id_prefix = id_prefix or 'id'
|
||||||
media_type = media_type or guess_type(name)
|
media_type = media_type or self.guess_type(name)
|
||||||
if unique_href:
|
if unique_href:
|
||||||
name = self.make_name_unique(name)
|
name = self.make_name_unique(name)
|
||||||
href = self.name_to_href(name, self.opf_name)
|
href = self.name_to_href(name, self.opf_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user