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 485253 - selecting the "Ignore changes which insert or delete blank lines" doesn't work
selecting the "Ignore changes which insert or delete blank lines" doesn't work
Status: RESOLVED FIXED
Product: meld
Classification: Other
Component: filediff
1.1.x
Other All
: Normal normal
: ---
Assigned To: Stephen Kennedy
Stephen Kennedy
Depends on:
Blocks:
 
 
Reported: 2007-10-10 01:44 UTC by Joel Duckworth
Modified: 2010-03-02 05:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joel Duckworth 2007-10-10 01:44:32 UTC
Please describe the problem:
Ticking or unticking the box under Preferences:Text Filters "Ignore changes which insert or delete blank lines" makes no difference to blank lines being flagged as changes. 

This bug invalidates being able to use regular expressions because the matched line is still shown as a change unless you put a blank line in the corresponding area on the other file

Steps to reproduce:
1. Make a new file comparison
2. Enter in the first file
asdf
asdf
asdf
3. Enter in the second file
asdf
asdf

asdf
4. Untick references:Text Filters "Ignore changes which insert or delete blank lines"
5. View the difference on the files (hit refresh to make sure)
6. Tick references:Text Filters "Ignore changes which insert or delete blank lines"
7. View the difference on the files (hit refresh to make sure)

Actual results:
The blank line in the second file is not ignored

Expected results:
when the option is unticked the blank line in the second file should be ignored

Does this happen every time?
yes

Other information:
version 1.1.4 from the Ubuntu repository
Comment 1 Vincent Legoll 2008-04-14 12:47:05 UTC
I think the option is working only for {link,diff}map
but should be doing the same for gtktextviewer...

CONFIRMED !
Comment 2 Stephen Kennedy 2008-04-27 21:08:07 UTC
The way ignore blank lines works now is to trim blank lines on either
side of diffs. As you can see, this sometimes breaks. As a sidenote
I'd like to see the the differences very faintly both in the textview
and the sidebar, so you can see something when your vc tells you the
files differ! As you can see the diff is skipped by the central pane
drawing and "next/prev" buttons.

First file:
asdf
asdf
asdf
x

Second file:
asdf
asdf

asdf
x
Comment 3 Kai Willadsen 2010-03-02 05:55:25 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.