Tab oddities
Tab oddities
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.
(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...
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.
(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...
Re: Tab oddities
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.
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.
- Attachments
-
- Screenshot.jpg (65.49 KiB) Viewed 17027 times
Re: Tab oddities
Hmm, still can't reproduce. Could you show white space on your screenshots?
psguru
PrestoSoft
PrestoSoft
Re: Tab oddities
For what is worth: the problem is present on both 32 bits (XP) and 64 bits (windows 7).
After having exported (saved) my configuration 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.
After having exported (saved) my configuration 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.
Re: Tab oddities
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
PrestoSoft
Re: Tab oddities
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...
That is: you have lines marked as "different" but with no apparent difference. And this only if you compare them in a specific order...
Re: Tab oddities
Well, you can see the difference when you enable white space view. Anyway, we'll look into this, thanks.
psguru
PrestoSoft
PrestoSoft
Re: Tab oddities
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.
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
PrestoSoft
Re: Tab oddities
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...
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...
Re: Tab oddities
Yes, it does. Try changing the Changed In Changed back color to, say, yellow.
psguru
PrestoSoft
PrestoSoft
Re: Tab oddities
Now that I'm awake I understand what you write.
Problem solved: thank you very much.
Problem solved: thank you very much.