Page MenuHomePhabricator

Fix two parsing issues for diffs with damaged whitespace
ClosedPublic

Authored by epriestley on May 3 2014, 11:13 PM.
Tags
None
Referenced Files
F15467808: D8968.id21272.diff
Thu, Apr 3, 6:05 PM
F15410494: D8968.diff
Wed, Mar 19, 7:30 AM
F15409743: D8968.diff
Wed, Mar 19, 5:03 AM
F15407203: D8968.id21272.diff
Tue, Mar 18, 4:18 PM
F15393308: D8968.diff
Sat, Mar 15, 8:47 PM
F15385880: D8968.id.diff
Fri, Mar 14, 11:36 PM
F15384079: D8968.diff
Fri, Mar 14, 6:43 PM
F15307596: D8968.id21272.diff
Thu, Mar 6, 5:18 AM
Subscribers

Details

Summary

Fixes T4941. If a diff has had trailing whitespace stripped, we will fail to handle empty lines correctly (previously, these lines had a leading space when the original tool emitted them).

(This probably stopped working around the time we began retaining newlines.)

Test Plan

The diff in T4941 now parses and renders correctly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix two parsing issues for diffs with damaged whitespace.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, asherkin.
btrahan edited edge metadata.
This revision is now accepted and ready to land.May 4 2014, 5:35 PM
epriestley updated this revision to Diff 21286.

Closed by commit rPa272ddcc7869 (authored by @epriestley).