react-diff-viewer
react-diff-viewer copied to clipboard
Leading spaces are hidden
Comparing
"1\n a"
with
"1\n b"
results in this:
I think that's because the leading spaces are wrapped in span - without wrapping, the browser (tested in Chrome and Firefox) doesn't hide them.
Wrapping in code instead of span seems to do the trick. Not sure if there are any implications.
having the same issue