diff options
author | Anika Henke <anika@selfthinker.org> | 2012-07-05 22:58:24 +0100 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-07-05 22:58:24 +0100 |
commit | e260f93b6cea05bc39bbd77b9db5bdc0c2c424bf (patch) | |
tree | 1ffe80265d810942d100fe0d33d3ab542a6c735c /inc/DifferenceEngine.php | |
parent | 0644090a80cabe51bcee580999ed33913aa24699 (diff) | |
download | rpg-e260f93b6cea05bc39bbd77b9db5bdc0c2c424bf.tar.gz rpg-e260f93b6cea05bc39bbd77b9db5bdc0c2c424bf.tar.bz2 |
xml compatibility fixes (mainly entities to unicode conversions)
Diffstat (limited to 'inc/DifferenceEngine.php')
-rw-r--r-- | inc/DifferenceEngine.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/DifferenceEngine.php b/inc/DifferenceEngine.php index 0a7ce8e7c..1b68cf6d3 100644 --- a/inc/DifferenceEngine.php +++ b/inc/DifferenceEngine.php @@ -1039,8 +1039,8 @@ class TableDiffFormatter extends DiffFormatter { // Preserve whitespaces by converting some to non-breaking spaces. // Do not convert all of them to allow word-wrap. $val = parent::format($diff); - $val = str_replace(' ',' ', $val); - $val = preg_replace('/ (?=<)|(?<=[ >]) /', ' ', $val); + $val = str_replace(' ','  ', $val); + $val = preg_replace('/ (?=<)|(?<=[ >]) /', ' ', $val); return $val; } @@ -1078,7 +1078,7 @@ class TableDiffFormatter extends DiffFormatter { } function emptyLine() { - return '<td colspan="2"> </td>'; + return '<td colspan="2"> </td>'; } function contextLine($line) { @@ -1132,8 +1132,8 @@ class InlineDiffFormatter extends DiffFormatter { // Preserve whitespaces by converting some to non-breaking spaces. // Do not convert all of them to allow word-wrap. $val = parent::format($diff); - $val = str_replace(' ',' ', $val); - $val = preg_replace('/ (?=<)|(?<=[ >]) /', ' ', $val); + $val = str_replace(' ','  ', $val); + $val = preg_replace('/ (?=<)|(?<=[ >]) /', ' ', $val); return $val; } |