fix(api): Add .xhtml file extension to epub chapters

This commit is contained in:
AaronBenDaniel
2025-06-09 12:43:51 -04:00
parent af90adb422
commit 9b440f3ee0
+1 -1
View File
@@ -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: