OSDN Git Service

Make texi2pod.pl accept @itemize commands with no following character
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Jun 2010 14:00:42 +0000 (14:00 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Jun 2010 14:00:42 +0000 (14:00 +0000)
or texinfo command for specifying how to generate @item marks, and
make it use by default the mark symbol "*".

This is consistent with texinfo docs:
"If you don't specify a mark command, the default is `@bullet'."

Originally committed as revision 23408 to svn://svn.ffmpeg.org/ffmpeg/trunk

doc/texi2pod.pl

index c414ffc..5964449 100755 (executable)
@@ -241,10 +241,10 @@ while(<$inf>) {
         and $_ = "\n=head3 $1\n";
 
     # Block command handlers:
-    /^\@itemize\s+(\@[a-z]+|\*|-)/ and do {
+    /^\@itemize\s*(\@[a-z]+|\*|-)?/ and do {
         push @endwstack, $endw;
         push @icstack, $ic;
-        $ic = $1;
+        $ic = $1 ? $1 : "*";
         $_ = "\n=over 4\n";
         $endw = "itemize";
     };