From 774ad168ca995534e4a6805a1bc0a8cea2f51f93 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 5 Aug 2008 20:54:20 +0200 Subject: [PATCH] texi2html: Handle sections without node attached (i.e. snippets) --- lilypond-texi2html.init | 6 ++++++ 1 file changed, 6 insertions(+) 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)); -- 2.39.5