From 277056d20fd1ce00d6eb8a83641e3db9559a6290 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Mon, 21 Jul 2008 01:53:32 +0200 Subject: [PATCH] texi2html: Rearrangement of variable declarations, no real changes --- lilypond-texi2html.init | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index a6e52d32bb..12834ebbc5 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -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. -- 2.39.5