sergi / go-diff

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

Whitespace does not get shown with DiffPrettyText #116

Open crthpl opened 3 years ago

crthpl commented 3 years ago

it would be helpful if whitespace was shown. It could be shown with a Coloured background. Newlines could be shown as \n (although only if it is changed?)

wormi4ok commented 3 years ago

Agree. I was puzzled for some time when nothing was highlighted in the DiffPrettyText output, even though the diff was not empty.