mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3763: got epubcheck validations error if epub_cover is set
This commit is contained in:
parent
c8d049bf01
commit
2387d513fa
1
CHANGES
1
CHANGES
@ -26,6 +26,7 @@ Bugs fixed
|
||||
number indicated is higher than the number of lines
|
||||
* #3774: Incremental HTML building broken when using citations
|
||||
* #3772: 'str object' has no attribute 'filename'
|
||||
* #3763: got epubcheck validations error if epub_cover is set
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -568,8 +568,8 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
||||
if self.coverpage_name not in self.files:
|
||||
ext = path.splitext(self.coverpage_name)[-1]
|
||||
self.files.append(self.coverpage_name)
|
||||
item = ManifestItem(self.esc(filename),
|
||||
self.esc(self.make_id(filename)),
|
||||
item = ManifestItem(self.esc(self.coverpage_name),
|
||||
self.esc(self.make_id(self.coverpage_name)),
|
||||
self.esc(self.media_types[ext]))
|
||||
metadata['manifest_items'].append(item)
|
||||
ctx = {'image': self.esc(image), 'title': self.config.project}
|
||||
|
Loading…
Reference in New Issue
Block a user