Browse code

doc/texi2pod.pl: skip printing chapter names if they are disabled (cherry picked from commit c838701ce4515bd51f7827be0b20f256ba5c69f3)

Signed-off-by: Timothy Gu <timothygu99@gmail.com>

Stefano Sabatini authored on 2013/03/20 04:34:42
Showing 1 changed files
... ...
@@ -121,7 +121,7 @@ INF: while(<$inf>) {
121 121
         $chapters{$chapter_name} .= postprocess($chapter) if ($chapter_name);
122 122
 
123 123
         # start new chapter
124
-        $chapter_name = $1, push (@chapters_sequence, $chapter_name);
124
+        $chapter_name = $1, push (@chapters_sequence, $chapter_name) unless $skipping;
125 125
         $chapters{$chapter_name} = "" unless exists $chapters{$chapter_name};
126 126
         $chapter = "";
127 127
         $output = 1;