Generate Unique anchors for TOC purpose
Problem
- Two headers with the same name get the same anchor in the TOC (the link from the TOC always points to the first in the row)
- Two headers with different names can map to the same anchorname because the name is truncated to 32 characters.
Proposal
Make every anchor that is generated for TOC purposes unique.
I changed it locally. Patch attached. Maybe you find it useful and can it be included in the next distribution....
- patch: patch for mentioned problem
Regards, Ruud
--
RuudGrosmann - 01 Nov 2004
Thanks, this fixes a long outstanding issue mentioned elsewhere.
The affected code is now split up in TWiki.pm and Render.pm. Once detail that needs special attention is that TWiki generates two anchor names, one is for compatibility with older content. The unique topic name number generator needs to account for that. Also, TOC needs to work as expected in composed INCLUDEd docs.
--
PeterThoeny - 04 Nov 2004