1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 16:58:48 +02: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
// in the diff.
$lines = explode("\n", rtrim($diff));
$lines = explode("\n", $diff);
foreach ($lines as $key => $line) {
if (isset($line[0]) && $line[0] == '\\') {
unset($lines[$key]);