1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Minor, fix an issue with synthetic diff construction for files with several blank lines at the end.

This commit is contained in:
epriestley 2012-03-25 20:03:07 -07:00
parent 53b06d1a52
commit f8932b83da

View file

@ -151,7 +151,7 @@ final class PhabricatorDifferenceEngine {
// whitespace changes, just drop these lines if they appear anywhere // whitespace changes, just drop these lines if they appear anywhere
// in the diff. // in the diff.
$lines = explode("\n", rtrim($diff)); $lines = explode("\n", $diff);
foreach ($lines as $key => $line) { foreach ($lines as $key => $line) {
if (isset($line[0]) && $line[0] == '\\') { if (isset($line[0]) && $line[0] == '\\') {
unset($lines[$key]); unset($lines[$key]);