diff --git a/kiplot/bom/html_writer.py b/kiplot/bom/html_writer.py index 20a21d31..c1ec1e29 100644 --- a/kiplot/bom/html_writer.py +++ b/kiplot/bom/html_writer.py @@ -98,6 +98,7 @@ def content_table(html, groups, headings, head_names, cfg, link_datasheet, link_ html.write("
\n") rc = 0 + hl_empty = cfg.html.highlight_empty for i, group in enumerate(groups): if (cfg.ignore_dnf and not group.is_fitted()) != dnf: continue @@ -114,7 +115,7 @@ def content_table(html, groups, headings, head_names, cfg, link_datasheet, link_ r = '' + r + '' if col_colors: # Empty cell? - if len(r) == 0 or r.strip() == "~": + if hl_empty and (len(r) == 0 or r.strip() == "~"): cl = 'empty' else: cl = cell_class(headings[n]) @@ -241,7 +242,8 @@ def write_html(filename, groups, headings, head_names, cfg): html.write('