Index: keylist.sh =================================================================== --- keylist.sh (revision 34669) +++ keylist.sh (revision 34670) @@ -135,7 +135,7 @@ ' } -# convert a "key src action" to a html table with rowspans for base keys +# convert a "key src action" to a html table gen_html() { $AWK -F '[\t]' ' @@ -206,12 +206,8 @@ print "
" print "key") - colspan = 2 - for(h in HIDS) { - printf(" | %s", h) - colspan++ - } + printf(" | ||||||
---|---|---|---|---|---|---|---|
key | action | source") + print "" for(n = 0; n < key_combos; n++) { clr_cnt++ @@ -229,7 +225,8 @@ } - print " | " cleanup(keystr) + print " | " cleanup(keystr) " | "
+ srcs=""
for(h in HIDS) {
mn = cleanup(MENUNAME[h, key])
act = cleanup(ACTION[h, key])
@@ -239,11 +236,18 @@
gsub(");", "); ", act)
if (mn != "")
act = "" mn "" " " act + if (srcs == "") + srcs = h + else + srcs = srcs " " h } - print " | ", act
+ print act
if ((h, key) in ERR)
print " Error: key prefix collision" } + if (srcs == "") + scrs = "n/a" + print " | ", srcs last_base = base } print " |