Side-by-side diff comparison showing incorrect results
The side-by-side diff comparison view is showing incorrect results, when there is a comparison with a deleted line to one without a newline.
An example is below, where the
- title: "Error tracking" line is actually removed and can be confirmed in the Inline view.
Steps to reproduce
- Delete content from the end of a file, which does not have an empty newline.
- Look at the commit diff in side-by-side view.
What is the current bug behavior?
The line across from the newline entry is not highlighted like it has been removed.
What is the expected correct behavior?
The line should show as removed.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Per @DouweM, the
td has a class of
old-nonewline which is incorrect, it should just be