Page 1 of 1
Ignoring... almost
Posted: Fri Nov 28, 2014 1:12 am
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".
Re: Ignoring... almost
Posted: Fri Nov 28, 2014 9:52 am
by psguru
I could not reproduce this (see lines 7 below, space versus tab between "Symbolic" and "Constants").
![EDP Ignore Whitespace.png](./download/file.php?id=94&sid=4b437e87b351cfec244d0fa35bd7b07a)
- EDP Ignore Whitespace.png (20.8 KiB) Viewed 11460 times
Re: Ignoring... almost
Posted: Fri Nov 28, 2014 10:26 am
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.
Re: Ignoring... almost
Posted: Sun Nov 30, 2014 11:55 pm
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.
Re: Ignoring... almost
Posted: Mon Dec 01, 2014 12:02 pm
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.
Re: Ignoring... almost
Posted: Mon Dec 01, 2014 12:52 pm
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.
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](./download/file.php?id=96&sid=4b437e87b351cfec244d0fa35bd7b07a)
- Clipboard01.jpg (51.77 KiB) Viewed 11442 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](./download/file.php?id=97&sid=4b437e87b351cfec244d0fa35bd7b07a)
- Clipboard02.jpg (55.33 KiB) Viewed 11442 times
N.B.
![Clipboard03.jpg](./download/file.php?id=98&sid=4b437e87b351cfec244d0fa35bd7b07a)
- Clipboard03.jpg (2.98 KiB) Viewed 11442 times
(Problem unchanged in 7.0.1.12)
Re: Ignoring... almost
Posted: Mon Dec 01, 2014 12:59 pm
by psguru
I have to disagree. The first 13 lines on the left are also missing a semicolon, hence the differences.
Re: Ignoring... almost
Posted: Mon Dec 01, 2014 2:48 pm
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.
Sorry.