On 2009-12-29, Patrick McCarty wrote: > > After an hour digging through the texi2html source, I was not able to > figure it out, so I'll come back this issue in a couple of days. > > Though, as an experiment, I tried nulling the first return value > instead of the second, and the second-layer TOC did not disappear. I > don't know if this causes problems elsewhere though. See the diff > below. > > > diff --git a/Documentation/lilypond-texi2html.init > b/Documentation/lilypond-texi2html.init > index 1ff5d8a..2906347 100644 > --- a/Documentation/lilypond-texi2html.init > +++ b/Documentation/lilypond-texi2html.init > @@ -733,7 +733,10 @@ sub lilypond_element_target_name($$$) > # TODO: Once texi2html correctly prints out the target and not the id for > # the sections, change this back to ($id, $target) > $target = lc($target); > - return ($target, $target); > + > + # remove duplicate anchor generation > + return ("", $target); > + #return ($target, $target); > }
I forgot to mention that with this patch, hyperlinks have a "#" appended to them instead of a "#" followed by the node name. So it's still not satisfactory. I tried to figure out where the hyperlink names are generated. I assume the procedure does a simple concatenation of the filename, #, and the node name (id), but the location of this code has evaded me so far. Thanks, Patrick _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel