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
F18771792: D8968.diff
Wed, Oct 8, 9:54 PM
F18489313: D8968.diff
Sep 3 2025, 10:01 PM
F18076712: D8968.id21272.diff
Aug 4 2025, 6:39 PM
F18016502: D8968.id21286.diff
Aug 2 2025, 6:17 PM
F17948528: D8968.id.diff
Jul 31 2025, 9:17 PM
F17934484: D8968.diff
Jul 30 2025, 10:31 PM
Unknown Object (File)
Jun 15 2025, 6:39 AM
Unknown Object (File)
Jun 6 2025, 8:43 PM
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).