From cdb56311ddde710af6262c18f435a517fd116321 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 23 Jan 2010 13:20:45 +0000 Subject: [PATCH] Doc build: fix links to duplicate html anchors. Fix issue #957. texi2html still creates two html anchors, but at least we link to the right one, so the website pages load correctly. --- Documentation/lilypond-texi2html.init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index bfd88624a3..9635e3a41b 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -879,8 +879,14 @@ 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) + # I don't understand this comment, so I'm reluctant to delete it -gp $target = lc($target); - return ($target, $target); + if ($target eq lc($id)) { + $id = ""; + } else { + $id = substr($id, 0, - 2); # remove the "-1" + } + return ($id, $target); } -- 2.39.2