diff --git a/bomlib/html_writer.py b/bomlib/html_writer.py
index 6945e8d..eeeb1e9 100644
--- a/bomlib/html_writer.py
+++ b/bomlib/html_writer.py
@@ -134,6 +134,50 @@ def WriteHTML(filename, groups, net, headings, prefs):
html.write("\n")
html.write("
\n")
+ if prefs.generateDNF:
+ html.write("
\n") + for i, h in enumerate(headings): + # Cell background color + bg = bgColor(h) + html.write('\t | {h} | \n'.format(h=h, bg=' bgcolor="{c}"'.format(c=bg) if bg else '')) + html.write("
---|---|
{n} | \n'.format(n=rowCount)) + + for n, r in enumerate(row): + + if len(r) == 0: + bg = BG_EMPTY + else: + bg = bgColor(headings[n]) + + html.write('\t{val} | \n'.format(bg=' bgcolor={c}'.format(c=bg) if bg else '', val=link(r))) + + html.write("