From: Reinhold Kainhofer Date: Mon, 21 Jul 2008 18:06:28 +0000 (+0200) Subject: texi2html: If first section is unnumbered, give it its own filename (not index_1... X-Git-Tag: release/2.11.58-1~32^2~109 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=03eef9048b378110df28bc7be2d506efbfc15edc;p=lilypond.git texi2html: If first section is unnumbered, give it its own filename (not index_1.html!) --- diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index b001be9a2c..bba08c8171 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -263,7 +263,7 @@ sub split_at_numbered_sections($$$) $$element{id} = $anchor; # Numbered sections will get a filename Node_title, unnumbered sections will use # the file name of the previous numbered section: - if ($$element{number}) { + if ($$element{number} or $lastfilename == '') { my $filename = $anchor; $filename .= ".$docu_ext" if (defined($docu_ext)); $docnr += 1;