Преглед изворни кода

doc/texi2pod.pl: skip printing chapter names if they are disabled

Stefano Sabatini пре 12 година
родитељ
комит
c838701ce4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      doc/texi2pod.pl

+ 1 - 1
doc/texi2pod.pl

@@ -121,7 +121,7 @@ INF: while(<$inf>) {
         $chapters{$chapter_name} .= postprocess($chapter) if ($chapter_name);
         $chapters{$chapter_name} .= postprocess($chapter) if ($chapter_name);
 
 
         # start new chapter
         # 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};
         $chapters{$chapter_name} = "" unless exists $chapters{$chapter_name};
         $chapter = "";
         $chapter = "";
         $output = 1;
         $output = 1;