Ignoring... almost

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Ignoring... almost

Post by MSpagni »

Comparing two text files in which one has tabs and the other has not (only blanks) and checking "ignore white space: all", the difference markers disappear but the lines are still marked as "Changed".
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignoring... almost

Post by psguru »

I could not reproduce this (see lines 7 below, space versus tab between "Symbolic" and "Constants").
EDP Ignore Whitespace.png
EDP Ignore Whitespace.png (20.8 KiB) Viewed 11037 times
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Ignoring... almost

Post by MSpagni »

I'm now unable to replicate it since I modified the files that showed the problem.
It seemed so simple...
I'll try to recreate the situation.
Thanks for now.
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Ignoring... almost

Post by MSpagni »

Ah, things are never so simple as they seem!
The problem is not (only) in the blank/tabs. The behaviour is far more complicated.
Modify a line (the last one) so that it's "unchanged" and all of a sudden also the previous three lines are shown correctly...
Try with the attached files.
Attachments
Archive.zip
(1.35 KiB) Downloaded 570 times
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignoring... almost

Post by psguru »

I'm a little confused I'm afraid: what is the incorrect result that you see initially? When I compare your files, I see the last 4 lines as identical, which seems correct to me. A screenshot and your options will help.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Ignoring... almost

Post by MSpagni »

To begin with, let me say that the result someitmes depends also on where you come from, a thing that makes me call it a bug. :wink:

Detail level: lines and character.
Ignore: nothing.
You can see the difference between tabs and blanks and all the lines are different: OK.
Clipboard01.jpg
Clipboard01.jpg (51.77 KiB) Viewed 11019 times
Now: ignore all the white space.
All the lines (except the one with "high") should be "equal" but only the last 4 are shown as such!
(And this depends on how the last line is composed!)
Clipboard02.jpg
Clipboard02.jpg (55.33 KiB) Viewed 11019 times
N.B.
Clipboard03.jpg
Clipboard03.jpg (2.98 KiB) Viewed 11019 times
(Problem unchanged in 7.0.1.12)
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignoring... almost

Post by psguru »

I have to disagree. The first 13 lines on the left are also missing a semicolon, hence the differences.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 539
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Ignoring... almost

Post by MSpagni »

Gosh! You're absolutely right!
And I also used the line inspector!

I'm still convinced I saw something odd, but for now it's much better if I shut up. :oops:
Sorry.
Post Reply