On 12/10/2005, at 15.16, Gavin Kistner wrote:
I propose that it should scan down and when it sees the second start fold marker at the same depth, add 1 to a counter; when it sees the first close fold marker at that depth, it checks the counter...since it is non-zero, it subtracts one. Finally, when it sees the last fold marker, and the counter is at zero, then it uses that as the correct, paired end fold.
How about specifying folding markers in pairs? So it would only match the correct start to the correct end.
-- Sune.