Renamed *extra_sections* to *extra_content* and added documentation for the feature.

This commit is contained in:
Mark Wolfman
2021-08-07 23:45:36 -05:00
parent 1c0c13df72
commit 8a46ed31db
3 changed files with 23 additions and 18 deletions
+6 -6
View File
@@ -239,6 +239,12 @@ def make_gm_sheet(
use_dnd_decorations=fancy_decorations,
)
)
# Parse any extra homebrew sections, etc.
content.append(
create_extra_gm_content(sections=gm_props.pop("extra_content", []),
suffix=content_suffix,
use_dnd_decorations=fancy_decorations)
)
# Add the monsters
monsters_ = []
for monster in gm_props.pop("monsters", []):
@@ -272,12 +278,6 @@ def make_gm_sheet(
use_dnd_decorations=fancy_decorations,
)
)
# Parse any extra homebrew sections, etc.
content.append(
create_extra_gm_content(sections=gm_props.pop("extra_sections", []),
suffix=content_suffix,
use_dnd_decorations=fancy_decorations)
)
# Add the closing TeX
content.append(
jinja_env.get_template(f"postamble.{format_suffixes[output_format]}").render(