well your code worked fine. I put in in structure detection.
now I just need to understand how you did it !
testing your code without the plus sign now.... that also worked ( so my "subset of "argument is valid )
both times I get exactly 18 TOC entries corresponding to 18 chapters.
so it's some other difference between your code & my 1st attempt that is taking care of the duplicates ?
|