Page 1 of 1

comments sometimes not marked as ignored

Posted: Wed Feb 01, 2006 7:34 am
by MudGuard
I found a small bug in Examdiff.
It has to do with "Ignore comments".

Sometimes, of a multiline comment, only the last line is marked as ignored.
I tried to build a very small test case where the effect is visible.

Comparing

Code: Select all

1test
/*
2test
*/
3test
to

Code: Select all

test1
will show only the */ marked as ignored, the lines containing /* and 2test are only marked as changed.

removing either the line containing 1test or 3test will have the effect that the whole comment is marked as ignored.

I got version 3.4 this morning (Build 01.02.2006 03:39:05)

It does not depend on the */ being at the beginning of the line.
If the /* is not at the beginning of the line, the first line is marked as ignored as well, but not the lines in between ...


(not a critical bug, just a bit confusing ...)

Posted: Wed Feb 01, 2006 5:44 pm
by psguru
Yes, it's a bug. EDP, trying to be smart, wanted to not use the Ignored color if ignored text belongs to a diff block (like in your case). It failed, however, for the */ line.

The latest build of 3.4 has a fix as well as a new option: Options | Misc | "Use Ignored color in diff block" that control this behavior.

Posted: Tue Feb 07, 2006 12:27 am
by MudGuard
Sorry for the late answer, was away for a very long weekend ...

Will try the latest build tomorrow

Posted: Wed Feb 08, 2006 11:20 am
by MudGuard
Ok, it works as expected now!
Thanks for the quick fix!