Skip to content

Commit

Permalink
Fix railroad so head, body args included in html (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
schnorea authored Apr 18, 2023
1 parent b354ac2 commit d0d6a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyparsing/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,10 +2232,10 @@ def create_diagram(
)
if isinstance(output_html, (str, Path)):
with open(output_html, "w", encoding="utf-8") as diag_file:
diag_file.write(railroad_to_html(railroad, embed=embed))
diag_file.write(railroad_to_html(railroad, embed=embed, **kwargs))
else:
# we were passed a file-like object, just write to it
output_html.write(railroad_to_html(railroad, embed=embed))
output_html.write(railroad_to_html(railroad, embed=embed, **kwargs))

# Compatibility synonyms
# fmt: off
Expand Down

0 comments on commit d0d6a81

Please sign in to comment.