diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-02-06 13:14:18 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-02-06 13:14:18 +0000 |
commit | 427e84f7fea0383ba4bc6f77a014085364896bd3 (patch) | |
tree | af6a8bf635d51aee9be76f742a35d985086dae0a /contrib/texi2pod.pl | |
parent | 568265573d247d2f988d95f41f51325148139f3d (diff) | |
download | gcc-427e84f7fea0383ba4bc6f77a014085364896bd3.tar.gz |
texi2pod.pl: Handle @multitable.
contrib/
* texi2pod.pl: Handle @multitable.
From-SVN: r121646
Diffstat (limited to 'contrib/texi2pod.pl')
-rwxr-xr-x | contrib/texi2pod.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl index ed0d102a1a5..2791cdd85f0 100755 --- a/contrib/texi2pod.pl +++ b/contrib/texi2pod.pl @@ -162,6 +162,8 @@ while(<$inf>) { } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) { $_ = "\n=back\n"; $ic = pop @icstack; + } elsif ($ended eq "multitable") { + $_ = "\n=back\n"; } else { die "unknown command \@end $ended at line $.\n"; } @@ -278,6 +280,12 @@ while(<$inf>) { $endw = "enumerate"; }; + /^\@multitable\s.*/ and do { + push @endwstack, $endw; + $endw = "multitable"; + $_ = "\n=over 4\n"; + }; + /^\@([fv]?table)\s+(\@[a-z]+)/ and do { push @endwstack, $endw; push @icstack, $ic; @@ -297,6 +305,16 @@ while(<$inf>) { $_ = ""; # need a paragraph break }; + /^\@item\s+(.*\S)\s*$/ and $endw eq "multitable" and do { + @columns = (); + for $column (split (/\s*\@tab\s*/, $1)) { + # @strong{...} is used a @headitem work-alike + $column =~ s/^\@strong{(.*)}$/$1/; + push @columns, $column; + } + $_ = "\n=item ".join (" : ", @columns)."\n"; + }; + /^\@itemx?\s*(.+)?$/ and do { if (defined $1) { # Entity escapes prevent munging by the <> processing below. |