Browse Source

font-size and newline fix for firefox

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@460 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
2b1133a08c
  1. 1
      coverager/coverager.css
  2. 4
      coverager/coverager.php

1
coverager/coverager.css

@ -55,6 +55,7 @@ th a { color: black; font-weight: bold; display: block; width: 100%; height: 100
.lineNoCov { background-color: #ffe0e0; }
pre.code {
font-family: monospace;
font-size: 12px;
white-space: pre;
border: 1px solid gray;
}

4
coverager/coverager.php

@ -300,13 +300,13 @@ function sprint_cov($cov, $lines, $encode = true)
$line = str_replace("\n", "", htmlspecialchars($line));
}
if (isset($cov[$offs])) {
$lines[$l] = sprintf("<li class=\"line%sCov\"> %s\t%s</li>\n"
$lines[$l] = sprintf("<li class=\"line%sCov\"> %s\t%s\n</li>"
, $cov[$offs] ? '' : 'No'
, $cov[$offs]
, $line);
}
else {
$lines[$l] = "<li>\t$line</li>\n";
$lines[$l] = "<li>\t$line\n</li>";
}
}
return implode('', $lines);

Loading…
Cancel
Save