]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build fix: weird external_href problem in translations.
authorGraham Percival <graham@percival-music.ca>
Tue, 2 Feb 2010 13:36:08 +0000 (13:36 +0000)
committerGraham Percival <graham@percival-music.ca>
Tue, 2 Feb 2010 13:36:08 +0000 (13:36 +0000)
Documentation/lilypond-texi2html.init

index 4a6e1b15823f6c1d157173c9b641a3ba7233c773..64746f6051fbda0e88425c26fe9233d729cb2921 100644 (file)
@@ -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;