Fixed issue 160, diff viewer in code reviews does not indent correctly.

This commit is contained in:
Loic d'Anterroches 2009-03-26 15:21:16 +01:00
parent 1b2a5b2718
commit f028682900

View File

@ -172,6 +172,7 @@ class IDF_Diff
public static function padLine($line) public static function padLine($line)
{ {
$line = str_replace("\t", ' ', $line);
$n = strlen($line); $n = strlen($line);
for ($i=0;$i<$n;$i++) { for ($i=0;$i<$n;$i++) {
if (substr($line, $i, 1) != ' ') { if (substr($line, $i, 1) != ' ') {