mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
Fix #3763: got epubcheck validations error if epub_cover is set
This commit is contained in:
1 parent
c8d049bf01
commit
2387d513fa
2 files changed
+3
-2
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user