Skip to content

Commit

Permalink
Also in the DNF list.
Browse files Browse the repository at this point in the history
Apply the same to the DNF list.
I plan to move it to a function to avoid repeating the code.
But I won't do a PR until this patch and #113 are incorporated.
  • Loading branch information
set-soft committed Jul 17, 2020
1 parent c4fbc6d commit 7488d24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kibom/html_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ def WriteHTML(filename, groups, net, headings, prefs):

for n, r in enumerate(row):

if len(r) == 0:
# Link this column to the datasheet? (#112)
if link_datasheet and headings[n] == link_datasheet:
r = '<a href="' + group.getField(ColumnList.COL_DATASHEET) + '">' + r + '</a>'

if (len(r) == 0) or (r.strip() == "~"):
bg = BG_EMPTY
else:
bg = bgColor(headings[n])
Expand Down

0 comments on commit 7488d24

Please sign in to comment.