Closed (fixed)
Project:
Table of Contents
Version:
6.x-3.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Anonymous (not verified)
Created:
1 May 2010 at 12:20 UTC
Updated:
26 Feb 2019 at 21:00 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedReviewing the HTML, if the code is like:
This module add spaces and br:
So the anchor generated has the __ and the br on it.
Comment #2
AlexisWilke commentedHi jmesam,
Sorry, I missed answering you on this one sooner. First of all, the _ character should never appear at the beginning. You probably are not using the latest I posted. It may only be in the -dev version at this point. I guess I could add another test to remove double underscore characters and maybe also removing them from the end of the name.
The <br /> is most certainly added by one of the default system filters: Line break converter.
You can avoid the <br /> in the anchors of the table of contents by moving around the filters. The new version of the table of contents will also remove tags thus you can remove the <br /> tag too. I guess, again, that you'd want to test with -dev version.
Thank you.
Alexis Wilke
Comment #3
Anonymous (not verified) commentedThanks for your answer, I'll try the -dev. Table of content and HTML filter has a weight of 10 and Line break converter a weight of 1. Is it right?
Comment #4
AlexisWilke commentedjmesam,
Yes and no. The Line break convertor will be executed before the Table of contents and add the <br /> tags... Yet the newest version will remove those tags from the ID. So it will still work. With the older version, putting the Table of contents before the Line break converter would have at least solved the problem with the _br__ in the ID.
Thank you.
Alexis
Comment #5
Anonymous (not verified) commentedThe -dev version works as promised. Thanks