diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-01-23 11:43:37 +0100 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2013-08-28 09:35:20 -0700 |
commit | bd055c17682f5ee7dd94c7bcf318577fb4a10f3d (patch) | |
tree | b48c0938a618b4588700280e42850ba1c0815b27 /doc/texi2pod.pl | |
parent | 2892b01227d9b1e829b428591ce6fd2a30aae67a (diff) | |
download | ffmpeg-bd055c17682f5ee7dd94c7bcf318577fb4a10f3d.tar.gz |
doc: support multitable in texi2pod
(cherry picked from commit 5ea5ffc9cee1b91eed471fff2f51d771222cf8d2)
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'doc/texi2pod.pl')
-rwxr-xr-x | doc/texi2pod.pl | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl index c7f1125deb..fbb1d9aacb 100755 --- a/doc/texi2pod.pl +++ b/doc/texi2pod.pl @@ -169,7 +169,7 @@ INF: while(<$inf>) { } elsif ($ended =~ /^(?:example|smallexample|display)$/) { $shift = ""; $_ = ""; # need a paragraph break - } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) { + } elsif ($ended =~ /^(?:itemize|enumerate|(?:multi|[fv])?table)$/) { $_ = "\n=back\n"; $ic = pop @icstack; } else { @@ -269,7 +269,7 @@ INF: while(<$inf>) { $endw = "enumerate"; }; - /^\@([fv]?table)\s+(\@[a-z]+)/ and do { + /^\@((?:multi|[fv])?table)\s+(\@[a-z]+)/ and do { push @endwstack, $endw; push @icstack, $ic; $endw = $1; @@ -278,6 +278,7 @@ INF: while(<$inf>) { $ic =~ s/\@(?:code|kbd)/C/; $ic =~ s/\@(?:dfn|var|emph|cite|i)/I/; $ic =~ s/\@(?:file)/F/; + $ic =~ s/\@(?:columnfractions)//; $_ = "\n=over 4\n"; }; @@ -288,6 +289,21 @@ INF: while(<$inf>) { $_ = ""; # need a paragraph break }; + /^\@item\s+(.*\S)\s*$/ and $endw eq "multitable" and do { + my $columns = $1; + $columns =~ s/\@tab/ : /; + + $_ = "\n=item B<". $columns .">\n"; + }; + + /^\@tab\s+(.*\S)\s*$/ and $endw eq "multitable" and do { + my $columns = $1; + $columns =~ s/\@tab/ : /; + + $_ = " : ". $columns; + $section =~ s/\n+\s+$//; + }; + /^\@itemx?\s*(.+)?$/ and do { if (defined $1) { # Entity escapes prevent munging by the <> processing below. |