Hide whitespace changes doesn't hide all whitespace changes
Summary
When clicking the button Hide whitespace changes on the changes tab of a (specific) merge request, not all whitespace changes are hidden.
Steps to reproduce
- Add and commit this a file called
TESTFILEwith the following contents into a repository:Leading whitespace with tab 1 Leading whitespace with space 2 Trailing whitespace with tab 3 Trailing whitespace with space 4 - Make a new branch. Eg.
whitespace-test - Replace
TESTFILEwith the following contents (Note the leading/trailing whitespace changes as well):Leading whitespace with tab 1 Leading whitespace with space 2 Trailing whitespace with tab 3 Trailing whitespace with space 4 - Create a new MR from this branch.
- Look at the diff with
Show Whitespace changesboth on and off, observe that whitespace changes with leading whitespace are always displayed.
Expected behavior
No whitespace changes are displayed.
Actual behavior
Some whitespace changes are still displayed.
Screenshot
screenshots
Edited by Pedro Moreira da Silva

