[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remove duplicate anchor generation in texi2html
From: |
Patrick McCarty |
Subject: |
Re: remove duplicate anchor generation in texi2html |
Date: |
Tue, 29 Dec 2009 21:55:38 -0800 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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