After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635593 - Newline differences should be displayed and highlighted
Newline differences should be displayed and highlighted
Status: RESOLVED OBSOLETE
Product: meld
Classification: Other
Component: filediff
git master
Other All
: Normal enhancement
: ---
Assigned To: meld-maint
meld-maint
: 701661 739561 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-11-23 09:30 UTC by Kai Willadsen
Modified: 2017-12-13 18:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kai Willadsen 2010-11-23 09:30:21 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.
Comment 1 Kai Willadsen 2013-06-06 21:59:50 UTC
*** Bug 701661 has been marked as a duplicate of this bug. ***
Comment 2 Kai Willadsen 2014-09-22 20:35:50 UTC
When fixing this, should also make sure to handle trailing EOL characters at EOF, since current line splitting code will discard the trailing newline.
Comment 3 Kai Willadsen 2014-11-03 20:53:51 UTC
*** Bug 739561 has been marked as a duplicate of this bug. ***
Comment 4 Kai Willadsen 2015-02-07 23:49:01 UTC
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.
Comment 5 John Doe 2016-09-15 06:28:11 UTC
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.
Comment 6 GNOME Infrastructure Team 2017-12-13 18:53:13 UTC
-- 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.