summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAussie Schnore <aussiev123@yahoo.com>2023-04-18 16:11:54 -0400
committerGitHub <noreply@github.com>2023-04-18 15:11:54 -0500
commitd0d6a81ff27c3448a51fcffbd397d7135203a93b (patch)
tree1e4aa3b3cabea2828f5103ec3feb9d953715230d
parentb354ac2fb40de06b1e1f534f6adbedd53d281dd5 (diff)
downloadpyparsing-git-d0d6a81ff27c3448a51fcffbd397d7135203a93b.tar.gz
Fix railroad so head, body args included in html (#479)
-rw-r--r--pyparsing/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py
index 9825099..4c68e8c 100644
--- a/pyparsing/core.py
+++ b/pyparsing/core.py
@@ -2232,10 +2232,10 @@ class ParserElement(ABC):
)
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