From 13ca8011bc610b042062c22b36cdda3f3a920481 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Tue, 2 Feb 2010 13:36:08 +0000 Subject: [PATCH] Build fix: weird external_href problem in translations. --- Documentation/lilypond-texi2html.init | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index 4a6e1b1582..64746f6051 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -928,9 +928,11 @@ sub lilypond_external_ref($$$$$$) # only lc() the last portion: my @htmlsplit = split('/', $href); - # change the last portion (the filename) - @htmlsplit[$#array] = lc( @htmlsplit[$#array] ); - $href = join("/", @htmlsplit); + # change the last portion (the filename), if it exists + if ($#array > 0) { + @htmlsplit[$#array] = lc( @htmlsplit[$#array] ); + $href = join("/", @htmlsplit); + } my $cross_ref = shift; -- 2.39.5