Skip to content

Commit

Permalink
Implement fontname and bgcolor(WIP) replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
17o2 authored and laurierloi committed Jan 19, 2023
1 parent 928f607 commit a80192b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wireviz/wv_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def generate_html_output(filename: Union[str, Path], bom_list: List[List[str]],
# prepare simple replacements
replacements = {
'<!-- %generator% -->': f'{APP_NAME} {__version__} - {APP_URL}',
'<!-- %fontname% -->': options.fontname,
'<!-- %bgcolor% -->': options.bgcolor, # TODO: currently not working, requires translation from 2-char color code to HTML
'<!-- %diagram% -->': svgdata,
'<!-- %bom% -->': bom_html,
'<!-- %bom_reversed% -->': bom_html_reversed,
Expand Down

0 comments on commit a80192b

Please sign in to comment.