]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Rearrangement of variable declarations, no real changes
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 20 Jul 2008 23:53:32 +0000 (01:53 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 20 Jul 2008 23:53:32 +0000 (01:53 +0200)
lilypond-texi2html.init

index a6e52d32bbf032c22169dafd23a8c08e23f9300a..12834ebbc537f1f41a2f4feb7b9e07657404fe37 100644 (file)
@@ -75,16 +75,11 @@ $Texi2HTML::Config::finish_out           = \&lilypond_finish_out;
 $Texi2HTML::Config::unknown              = \&lilypond_unknown;
 
 
-my $lastfilename;
-my $docnr = 0;
-my $page_toc_depth = 2;
-my @default_toc = [];
 my @section_to_filename;
 
 
 
 
-
 #############################################################################
 ###  DEBUGGING
 #############################################################################
@@ -180,6 +175,10 @@ sub lilypond_css_lines ($$)
 ###  SPLITTING BASED ON NUMBERED SECTIONS
 #############################################################################
 
+my $lastfilename;
+my $docnr = 0;
+my $node_to_filename_map = ();
+
 # This function makes sure that files are only generated for numbered sections,
 # but not for unnumbered ones. It is called after texi2html has done its own
 # splitting and simply returns the filename for the node given as first argument
@@ -507,6 +506,9 @@ sub lilypond_external_href($$$)
 ###  CUSTOM TOC FOR EACH PAGE (in a frame on the left)
 #############################################################################
 
+my $page_toc_depth = 2;
+my @default_toc = [];
+
 # recursively generate the TOC entries for the element and its children (which
 # are only shown up to maxlevel. All ancestors of the current element are also
 # shown with their immediate children, irrespective of their level.