Fixed issue 160, diff viewer in code reviews does not indent correctly.
This commit is contained in:
parent
1b2a5b2718
commit
f028682900
@ -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) != ' ') {
|
||||||
|
Loading…
Reference in New Issue
Block a user