[FFmpeg-devel] [PATCH 2/8] doc/texi2pod: use GCC implementation of @itemize

Timothy Gu timothygu99 at gmail.com
Thu Jan 23 05:04:00 CET 2014


Changed to GCC r69399, 70036, & 123514. Does not change output.

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 doc/texi2pod.pl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 3d1b7cd..ef2f7bc 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -249,10 +249,14 @@ INF: while(<$inf>) {
         and $_ = "\n=head4 $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 ? $1 : "*";
+        if (defined $1) {
+            $ic = $1;
+        } else {
+            $ic = '*';
+        }
         $_ = "\n=over 4\n";
         $endw = "itemize";
     };
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list