Tags:
create new tag
, view all tags

Bug: Links generated by %TOC% don't match anchors generated with ExplicitNumberingPlugin?

The link references generated by %TOC% don't match the "name=" anchors generated when using the ExplicitNumberingPlugin? .

Test case

Environment

TWiki version: TWikiRelease03Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache 2.0
Perl version: 5.8.4
Client OS: Windows XP
Web Browser: Firefox

-- TomDoerr - 26 Sep 2005

Impact and Available Solutions

Follow up

 

Fix record

The quick fix for my situation was to add this line to the makeAnchorName subroutine in Render.pm: $anchorName=~s/^(\d+_)*//; (and THEN reduce to 32 char limit).

Discussion

However, if the proper thing to do is INCLUDE the section numbers in the links and anchors, then someone (me?) will have to dig into the ExplicitNumberingPlugin? code to ensure that those anchors are being created in a consistent manner that %TOC% expects...

-- TomDoerr - 26 Sep 2005

Tom, please raise this bug in ExplicitNumberingPluginDev, and hopefully the author of that plugin will pick up on it.

-- CrawfordCurrie - 27 Sep 2005

 
Topic revision: r2 - 27 Sep 2005 - 10:14:55 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback