From: Reinhold Kainhofer Date: Tue, 5 Aug 2008 18:54:20 +0000 (+0200) Subject: texi2html: Handle sections without node attached (i.e. snippets) X-Git-Tag: release/2.11.58-1~32^2~88 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=774ad168ca995534e4a6805a1bc0a8cea2f51f93;p=lilypond.git texi2html: Handle sections without node attached (i.e. snippets) --- diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index c5b7927cff..2d853fec5b 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -254,6 +254,12 @@ sub split_at_numbered_sections($$$) my $docu_ext = $Texi2HTML::Config::EXTENSION; my $node_name = main::remove_texi($element->{'node_ref'}->{'texi'}); + # the snippets page does not use nodes for the snippets, so in this case + # we'll have to use the section name! + if ($node_name eq '') { + $node_name = main::remove_texi($element->{'texi'}); + } + if (exists ($node_to_filename_map->{$node_name})) { (my $filename, my $anchor) = @{$node_to_filename_map->{$node_name}}; $filename .= ".$docu_ext" if (defined($docu_ext));