doc/texi2pod.pl: skip printing chapter names if they are disabled
authorStefano Sabatini <stefasab@gmail.com>
Tue, 19 Mar 2013 19:34:42 +0000 (20:34 +0100)
committerTimothy Gu <timothygu99@gmail.com>
Tue, 27 Aug 2013 16:06:37 +0000 (09:06 -0700)
(cherry picked from commit c838701ce4515bd51f7827be0b20f256ba5c69f3)

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
doc/texi2pod.pl

index 697576c..610f349 100755 (executable)
@@ -121,7 +121,7 @@ INF: while(<$inf>) {
         $chapters{$chapter_name} .= postprocess($chapter) if ($chapter_name);
 
         # start new chapter
-        $chapter_name = $1, push (@chapters_sequence, $chapter_name);
+        $chapter_name = $1, push (@chapters_sequence, $chapter_name) unless $skipping;
         $chapters{$chapter_name} = "" unless exists $chapters{$chapter_name};
         $chapter = "";
         $output = 1;