Ref T3353. Currently, if text ends in newlines (or some other types of punctuation) we generate an extra piece at the end which can muck up the algorithm.
Do a slightly better job with this.
Differential D16061
Slightly improve prose diffs for text ending in newlines or punctuation epriestley on Jun 6 2016, 8:51 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Ref T3353. Currently, if text ends in newlines (or some other types of punctuation) we generate an extra piece at the end which can muck up the algorithm. Do a slightly better job with this. Viewed a diff between "a\nb\nc\n" and "a\nb\nc\nd\n", got a cleaner diff out of it.
Diff Detail
|