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, Dec 27, 9:52 AM
Unknown Object (File)
Mon, Dec 16, 8:32 AM
Unknown Object (File)
Sun, Dec 8, 10:18 PM
Unknown Object (File)
Thu, Dec 5, 12:10 PM
Unknown Object (File)
Dec 4 2024, 4:36 AM
Unknown Object (File)
Dec 3 2024, 8:50 AM
Unknown Object (File)
Nov 27 2024, 11:40 PM
Unknown Object (File)
Nov 20 2024, 9:32 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
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.