ソースを参照

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);
 
         # 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;