sergi / go-diff

Diff, match and patch text in Go
MIT License
1.81k stars 207 forks source link

Made diffprettytext replace invisibles with unicode characters #126

Open NickyBoy89 opened 2 years ago

NickyBoy89 commented 2 years ago

Not sure is this is the best method to do this, but this PR replaces invisible characters in the Insert/Delete diffs, so that these characters can be seen and fixed, instead of not being able to tell between diffs that look the same but have unequal whitespace, which is something that I have been struggling with.

The ways that I can see to implement this are:

chiragjn commented 1 year ago

Bump on this, this is a very useful change @sergi I can help if needed