]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: If first section is unnumbered, give it its own filename (not index_1...
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 21 Jul 2008 18:06:28 +0000 (20:06 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 21 Jul 2008 18:06:28 +0000 (20:06 +0200)
lilypond-texi2html.init

index b001be9a2cbcbadb627998b2c974dfb06066763d..bba08c817120d75e3b422175b8006c18bc18c9d4 100644 (file)
@@ -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;