Improve htmlgen

Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
Clifford Wolf 2017-11-16 05:42:40 +01:00 committed by Tim 'mithro' Ansell
parent 504e37e421
commit 80c4245d10
1 changed files with 3 additions and 0 deletions

View File

@ -169,7 +169,9 @@ for segtype in segbits.keys():
bgcolor = "#aaaaaa"
if bit_pos not in maskbits[segtype]:
label = "&nbsp;"
bgcolor = "#444444"
title.append("UNUSED ?")
if bit_name is not None:
bgcolor = "#ff0000"
@ -236,6 +238,7 @@ for segtype in segbits.keys():
if label is None:
label = "&nbsp;"
title.append("UNKNOWN")
onclick = ""
else:
onclick = " onmousedown=\"location.href = '#b%s'\"" % bit_pos