Minor, fix an issue with synthetic diff construction for files with several blank lines at the end.
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user