From: Reinhold Kainhofer Date: Sun, 20 Jul 2008 23:53:32 +0000 (+0200) Subject: texi2html: Rearrangement of variable declarations, no real changes X-Git-Tag: release/2.11.58-1~32^2~114 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=277056d20fd1ce00d6eb8a83641e3db9559a6290;p=lilypond.git texi2html: Rearrangement of variable declarations, no real changes --- 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.