praneshr / react-diff-viewer

A simple and beautiful text diff viewer component made with Diff and React.
https://praneshravi.in/react-diff-viewer/
MIT License
1.43k stars 270 forks source link

bug handling added/removed empty lines #190

Open marsiancba opened 9 months ago

marsiancba commented 9 months ago

There seems to be some bug with handling of added/removed empty lines. E.g. if you compare two simple strings:

oldValue="a\nb"
newValue="a\n\nb"

It shows as no difference:

image

princewck commented 2 weeks ago

how did u resolve this