Browse Source

avoid losing last line

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@531 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
9fb4213b4e
  1. 2
      coverager/coverager.php

2
coverager/coverager.php

@ -113,7 +113,7 @@ class XcacheCoverageViewer
$lines = preg_replace('(^<span[^>]*>|</span>$)', '', $lines);
$lines = explode('<br />', $lines);
$last = array_pop($lines);
$lines[count($lines) - 1] = $last;
$lines[count($lines) - 1] .= $last;
$filecov = sprint_cov($fileinfo['cov'], $lines, false);
unset($source);
}

Loading…
Cancel
Save