]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Fix section names in navigation links
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 25 Mar 2008 23:38:43 +0000 (00:38 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 25 Mar 2008 23:38:43 +0000 (00:38 +0100)
I messed those up while updating the function to generate the navigation
with the new accesskey code...

lilypond-texi2html.init

index 2dc663efaa3e7436baeff55219ab8bad02ba59e2..005f71223f255177fd901641bb931ff94e3199e2 100644 (file)
@@ -247,7 +247,7 @@ sub get_navigation_text
   } elsif ( ($button eq 'Forward') or ($button eq 'FastForward') ) {
     $text = "&nbsp;" . $Texi2HTML::NODE{$button} . $text;
   } elsif ( $button eq 'Up' ) {
-    $text = "&nbsp;Up:&nbsp;" . $Texi2HTML::NODE{$button} . "&nbsp;";
+    $text = "&nbsp;".$text.":&nbsp;" . $Texi2HTML::NODE{$button} . "&nbsp;";
   }
   return $text;
 }
@@ -319,14 +319,13 @@ sub lilypond_print_navigation
                   print $fh "" .
                         &$anchor('',
                                     $Texi2HTML::HREF{$button_href},
-                                    $$text,
+                                    get_navigation_text($$text),
                                     $anchor_attributes
-                                   ) 
-                                    ;
+                                   );
                 }
                 else
                 {
-                  print $fh $$text;
+                  print $fh get_navigation_text($$text);
                 }
             }
         }
@@ -367,7 +366,7 @@ sub lilypond_print_navigation
                     '[' .
                         &$anchor('',
                                     $Texi2HTML::HREF{$button},
-                                    $NAVIGATION_TEXT{$button},
+                                    get_navigation_text ($button),
                                     $btitle
                                    ) .
                                        ']';
@@ -381,7 +380,7 @@ sub lilypond_print_navigation
                                           $PASSIVE_ICONS{$button},
                                           $Texi2HTML::SIMPLE_TEXT{$button}) :
 
-                                              "[" . $NAVIGATION_TEXT{$button} . "]";
+                                              "[" . get_navigation_text($button) . "]";
         }
         print $fh "</td>\n" if $vertical;
         print $fh "</tr>\n" if $vertical;