Page MenuHomePhabricator

Exempt some more puncutation characters from diff smoothing in prose diffs
ClosedPublic

Authored by epriestley on Nov 13 2016, 10:05 PM.
Tags
None
Referenced Files
F13214142: D16853.id.diff
Fri, May 17, 8:45 AM
F13195580: D16853.diff
Sun, May 12, 10:29 PM
F13178021: D16853.diff
Wed, May 8, 8:06 PM
Unknown Object (File)
Mon, May 6, 12:35 AM
Unknown Object (File)
Sun, Apr 28, 2:00 PM
Unknown Object (File)
Fri, Apr 26, 7:00 PM
Unknown Object (File)
Fri, Apr 26, 1:08 AM
Unknown Object (File)
Thu, Apr 25, 1:58 AM
Subscribers
None

Details

Summary

Ref T7643. We intentionally smooth diffs, because an edit which changes "The cat ran past." to "The boar ran past." is easier to read if it looks like this:

The (- cat)(+ boar) ran past.

...than if it looks like this:

The (- c)(+ bo)a(-t)(+r) ran past.

However, this rule currently gives us slightly-too-large word diffs for "words" that contain some punctuation symbols, like ] and ). Include these as layout symbols to generate slightly better diffs.

Test Plan

Unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Exempt some more puncutation characters from diff smoothing in prose diffs.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 13 2016, 10:10 PM
This revision was automatically updated to reflect the committed changes.