Tab oddities

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

Tab oddities

Post by MSpagni »

Many times I had the feeling of something odd with the display of the tabs, but I was unable to focus it.
Now I got it.

The easy recipe: compare two files identical, were it not that one has tabs while the other has spaces instead.
Not ignoring white space, the two files of course are different.
Indeed, if you put the tabbed one in the left pane and the untabbed in the right pane (and selecting detail level: lines and chars) then you can see the "added" spaces.
Swap the files and... you can't see them anymore. :lol:
(N.B. if you swap again then the difference returns visible.)
(N.B. #2: It only depends on which pane contains which file; the swap is simply the easiest way to do the check.)

There is also something similar when saving a file in which you just copied a block of lines without tabs on the correspondent block in the other file, but the thing is more complicated and I've not yet studied it.
Food for later... :wink:
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

Can't reproduce it. Could you post screenshots?
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

Sure!
You can see it by yourself, but anyway: Foo1 is tabbed, Foo2 is not.

P.S. Forget the note about the saving. I found my fault. :oops:
Attachments
Screenshot.jpg
Screenshot.jpg (65.49 KiB) Viewed 16725 times
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

Hmm, still can't reproduce. Could you show white space on your screenshots?
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

Sure.
Here it comes.
Attachments
Clipboard01.jpg
Clipboard01.jpg (66.5 KiB) Viewed 16718 times
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

For what is worth: the problem is present on both 32 bits (XP) and 64 bits (windows 7).
After having exported (saved) my configuration :mrgreen: I tried resetting all pages to default, then, of course, I choose "lines and characters": the effect is still there.
I tried completely removing EDP, including the registry data (gosh!), and reinstalling from scratch (without restoring my configuration): same result.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

So, just to understand, what exactly is the problem? Not marking background color of the first spaces when the file with spaces is on the left? If so, then yes, we can reproduce this.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

Yes, right that.
That is: you have lines marked as "different" but with no apparent difference. And this only if you compare them in a specific order...
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

Well, you can see the difference when you enable white space view. Anyway, we'll look into this, thanks.
psguru
PrestoSoft
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

The mystery is solved.

When you have file with spaces on the left, two regions in each line have the same background color since, by default, background colors of Changed In Changed and Deleted are identical. When you toggle, you are looking at Changed In Changed followed by Added, which have different background colors.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

I'm glad you understood the matter.
And I think I did too but, maybe because it's bed time here, I'm a bit confused.
I hoped I could "fix" the problem by changing a color in the options, but it seems this is not possible.
(Well, no, chianging colors Is possible; what I mean is that that operation don't solve the problem!)
Is it so?
I'llook at it tomorrow when I (hopefully) will be less sleepy...
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Tab oddities

Post by psguru »

Yes, it does. Try changing the Changed In Changed back color to, say, yellow.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Tab oddities

Post by MSpagni »

Now that I'm awake I understand what you write. :oops:
Problem solved: thank you very much.
Post Reply