react-diff-viewer icon indicating copy to clipboard operation
react-diff-viewer copied to clipboard

How to hide whitespace changes

Open varunmankal opened this issue 4 years ago • 0 comments
trafficstars

We are planning to use this library and need hide whitespace changes feature to the one similar to Github.

Here is the requirement: The whitespace changes should be visible when user selects that option and they along with the entire line should be removed from the diff when user opts to hide whitespace changes if the only diff on the line were whitespaces (just leading and trailing whitespaces will do).

If this is not already supported, can you give us a code snippet/way to incorporate this into your component and be able to use it for our use-case?

varunmankal avatar May 10 '21 23:05 varunmankal