When making GM session notes as epub, the party character sheets are also included.

This commit is contained in:
Mark Wolfman
2021-07-11 13:07:40 -05:00
parent f020eaccc6
commit e40d6b1a20
4 changed files with 17 additions and 5 deletions
+8 -1
View File
@@ -282,8 +282,15 @@ def make_gm_sheet(
except exceptions.LatexNotFoundError:
log.warning(f"``pdflatex`` not available. Skipping {basename}")
elif output_format == "epub":
chapters = {session_title: "".join(content)}
# Make sheets in the epub for each party member
for char in party:
char_html = make_character_content(char, "html",
fancy_decorations=fancy_decorations)
chapters[char.name] = "".join(char_html)
# Create the combined HTML file
epub.create_epub(
chapters={session_title: "".join(content)},
chapters=chapters,
basename=basename,
title=session_title,
use_dnd_decorations=fancy_decorations,