Skip to content

Commit 485a101

Browse files
committed
fix: Updated bnf_grammar_processor for use of f-string format that depends on Python 3.12+
1 parent ae25e85 commit 485a101

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool-support/bnf_grammar_tools/bnf_grammar/bnf_grammar_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def export_html(self):
11081108
bnf_html_file.write(f"<h2>{line_comment('Consolidated partial productions:')}</h2>")
11091109
for name, term_list in sorted(self.partial_productions.items()):
11101110
html_term_list = [f'<a_href="#{term}">{term}</a>' for term in sorted(term_list)]
1111-
term_list_lines = f'{name} =\n{self.wrap_sorted(html_term_list, sep=' | ', width=300)}'.replace("<a_href=", "<a href=").split("\n")
1111+
term_list_lines = f'{name} =\n{self.wrap_sorted(html_term_list, sep=" | ", width=300)}'.replace("<a_href=", "<a href=").split("\n")
11121112
bnf_html_file.write(f'<pre><a id="{name}"></a>\n{block_comment(term_list_lines, add_newline=False)}\n</pre>\n')
11131113

11141114
bnf_html_file.write(DATA.HTML_TAIL)

0 commit comments

Comments
 (0)