While comparing a couple of c files with the "ignore comments" option checked, I met an odd and unexpected misalignment.
The manual correction is easy but I don't understand why EDP can't do it automatically.
If they are many the thing becomes quickly annoying.
For your convenience I add a screenshot and the two c snippets.
Annoying misalignment
Annoying misalignment
- Attachments
-
- Cfiles.zip
- (1006 Bytes) Downloaded 815 times
-
- Clipboard.jpg (83.53 KiB) Viewed 12866 times
Re: Annoying misalignment
This is what I get. Obviously, our options do not match.
psguru
PrestoSoft
PrestoSoft
Re: Annoying misalignment
Obvious! What else? 
Please find my config here attached.

Please find my config here attached.
- Attachments
-
- Settings.zip
- (37.76 KiB) Downloaded 821 times
Re: Annoying misalignment
Thanks, we'll look into this. It's tricky though, and we may not have a good solution (there's a way to explain your results but I'm not going to get into that). One way to make this look better is to ignore blank lines.
psguru
PrestoSoft
PrestoSoft
Re: Annoying misalignment
After some analysis, it appears that EDP works correctly. In your example, since blank lines are not ignored, lines 15 (which becomes blank after ignoring C-style comments) and 13 are matched as identical (both are blank), and all ignored lines are misaligned as a result of this.
To make a more obvious case, take a look at the slightly modified example:
The same lines are aligned but this time the alignment is more obvious.
To make a more obvious case, take a look at the slightly modified example:
The same lines are aligned but this time the alignment is more obvious.
psguru
PrestoSoft
PrestoSoft
Re: Annoying misalignment
Gosh, I must say that I had to wait a moment of calm to grasp what you were saying.
I admit that, as expected, there is a logic behind it, but let me say it's far from intuitive.
I admit that, as expected, there is a logic behind it, but let me say it's far from intuitive.
Re: Annoying misalignment
Well, no everything is intuitive in this world, unfortunately.
psguru
PrestoSoft
PrestoSoft