diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-06 13:14:18 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-06 13:14:18 +0000 |
commit | 2eed23eb9d4d15d4c0fd946c7931de82fb7201c0 (patch) | |
tree | af6a8bf635d51aee9be76f742a35d985086dae0a /contrib/texi2pod.pl | |
parent | 9aac6e57b210907273ff80fe81870d8f5147c28d (diff) | |
download | gcc-2eed23eb9d4d15d4c0fd946c7931de82fb7201c0.tar.gz |
contrib/
* texi2pod.pl: Handle @multitable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121646 138bc75d-0d04-0410-961f-82ee72b054a4
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. |