aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorrsandifo <>2007-02-06 13:14:18 +0000
committerrsandifo <>2007-02-06 13:14:18 +0000
commite162277bbfcd9bd334bcc1c780b3630c85190779 (patch)
treeaf6a8bf635d51aee9be76f742a35d985086dae0a /contrib
parent36870093a64bf1f502406719f834173c75f8f391 (diff)
contrib/
* texi2pod.pl: Handle @multitable.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/texi2pod.pl18
2 files changed, 22 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index a097c762ce3..3b04fdc6107 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-06 Richard Sandiford <richard@codesourcery.com>
+
+ * texi2pod.pl: Handle @multitable.
+
2007-01-15 Tom Tromey <tromey@redhat.com>
* download_ecj: New file.
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.