Enable diff semantic cleanup

This commit is contained in:
Justin Santa Barbara 2016-12-14 11:58:29 -05:00
parent d4fd866ce3
commit e046a770a9
1 changed files with 3 additions and 2 deletions

View File

@ -78,8 +78,9 @@ type lineRecord struct {
func buildDiffLines(lString, rString string) []lineRecord {
dmp := diffmatchpatch.New()
diffs := dmp.DiffMain(lString, rString, false)
// No need to cleanup, we're going to do a line based diff
//diffs = dmp.DiffCleanupSemantic(diffs)
// We do need to cleanup, as otherwise we get some spurious changes on complex diffs
diffs = dmp.DiffCleanupSemantic(diffs)
l := ""
r := ""