]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build: remove // from some html links.
authorGraham Percival <graham@percival-music.ca>
Sun, 17 Oct 2010 20:30:40 +0000 (21:30 +0100)
committerGraham Percival <graham@percival-music.ca>
Sun, 17 Oct 2010 21:08:46 +0000 (22:08 +0100)
Documentation/lilypond-texi2html.init

index e2d8638f2706cf7ee371fac97cf3295916ec02e7..8f46fd5ee21d3517cdcb29cad0e52fa66cb271eb 100644 (file)
@@ -1374,7 +1374,11 @@ sub lilypond_print_toc_div ($$)
       $lang = "";
     }
     my $reldir = $ENV{DEPTH};
-    my $uplink = $reldir."/Documentation/web/manuals.${lang}html";
+    # add a / at the end if there isn't one.  I cannot believe perl syntax!
+    if (!($reldir =~ m/\/$/ )) {
+        $reldir .= '/'
+    }
+    my $uplink = $reldir."Documentation/web/manuals.${lang}html";
 
     if (not $web_manual) {
       print $fh "<p class=\"toc_uplink\"><a href=\"$uplink\"