$colspec .= "<colgroup span='" . $nSub . "'>\n";
$colspec .= "<colgroup span='1'>\n";
$hdr1 .= "<th colspan='" . ($nSub + 1) . "' style='border-bottom:1px solid black;'>$task";
$hdr2 .= join("", map { "<th>$_" } sort {$a <=> $b} keys %{$known_tests{$task}});
$hdr2 .= "<th>Total";
}
$colspec .= "<colgroup span='" . $nSub . "'>\n";
$colspec .= "<colgroup span='1'>\n";
$hdr1 .= "<th colspan='" . ($nSub + 1) . "' style='border-bottom:1px solid black;'>$task";
$hdr2 .= join("", map { "<th>$_" } sort {$a <=> $b} keys %{$known_tests{$task}});
$hdr2 .= "<th>Total";
}