fix(api): Add .xhtml file extension to epub chapters
This commit is contained in:
@@ -64,7 +64,7 @@ class EPUBGenerator(AbstractGenerator):
|
|||||||
|
|
||||||
for idx, (part, tree) in enumerate(zip(self.story["parts"], self.parts)):
|
for idx, (part, tree) in enumerate(zip(self.story["parts"], self.parts)):
|
||||||
chapter = epub.EpubHtml(
|
chapter = epub.EpubHtml(
|
||||||
title=part["title"], file_name=f"{idx}_{part['id']}"
|
title=part["title"], file_name=f"{idx}_{part['id']}.xhtml"
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.images:
|
if self.images:
|
||||||
|
|||||||
Reference in New Issue
Block a user