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
Unknown Object (File)
Fri, Apr 19, 5:40 PM
Unknown Object (File)
Thu, Apr 18, 3:16 PM
Unknown Object (File)
Wed, Apr 17, 12:06 PM
Unknown Object (File)
Sun, Apr 7, 4:54 AM
Unknown Object (File)
Fri, Mar 29, 10:34 PM
Unknown Object (File)
Thu, Mar 28, 10:11 AM
Unknown Object (File)
Wed, Mar 27, 9:46 PM
Unknown Object (File)
Wed, Mar 27, 5:16 PM
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
Branch
psmooth1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14475
Build 18870: Run Core Tests
Build 18869: arc lint + arc unit

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.