GNOME Bugzilla – Bug 635593
Newline differences should be displayed and highlighted
Last modified: 2017-12-13 18:53:13 UTC
See bug 602933. The idea is that when a newline character is part of a difference (in particular unicode newlines) it would be useful to have some way of showing that the newline characters are different. At the moment, Meld discards line ending information and considers all newline characters/sequences to be equal. However, we can keep it around with splitlines(). It's not entirely clear in which situations we should take into account newline differences.
*** Bug 701661 has been marked as a duplicate of this bug. ***
When fixing this, should also make sure to handle trailing EOL characters at EOF, since current line splitting code will discard the trailing newline.
*** Bug 739561 has been marked as a duplicate of this bug. ***
In current master, Meld now notifies in file comparisons if the files are identical, but have different line endings. This doesn't fix this bug, but at least the user now knows that there *is* a difference, even if we're not showing it properly.
I just came across this feature of being told the files were identical besides line endings, really appreciated :) If possible adding a button to convert/normalize to a specific line ending via Meld would be fantastic. I handled this with an Atom plugin line-ending-converter for the time being.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/24.