History

doc: support multitable in texi2pod

Luca Barbato committed 13 years ago

Commit 5ea5ffc1 parent 0b55b161 file · +18 −2Browse files

Unified · Split

doc/texi2pod.pl+18−2
@@ -161,7 +161,7 @@ INF: while(<$inf>) { · 160 unmodified lines
161161 } elsif ($ended =~ /^(?:example|smallexample|display)$/) {
162162 $shift = "";
163163 $_ = ""; # need a paragraph break
164− } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) {
164+ } elsif ($ended =~ /^(?:itemize|enumerate|(?:multi|[fv])?table)$/) {
165165 $_ = "\n=back\n";
166166 $ic = pop @icstack;
167167 } else {
@@ -262,7 +262,7 @@ INF: while(<$inf>) { · 94 unmodified lines
262262 $endw = "enumerate";
263263 };
264264
265− /^\@([fv]?table)\s+(\@[a-z]+)/ and do {
265+ /^\@((?:multi|[fv])?table)\s+(\@[a-z]+)/ and do {
266266 push @endwstack, $endw;
267267 push @icstack, $ic;
268268 $endw = $1;
@@ -271,6 +271,7 @@ INF: while(<$inf>) { · 2 unmodified lines
271271 $ic =~ s/\@(?:code|kbd)/C/;
272272 $ic =~ s/\@(?:dfn|var|emph|cite|i)/I/;
273273 $ic =~ s/\@(?:file)/F/;
274+ $ic =~ s/\@(?:columnfractions)//;
274275 $_ = "\n=over 4\n";
275276 };
276277
@@ -281,6 +282,21 @@ INF: while(<$inf>) { · 4 unmodified lines
281282 $_ = ""; # need a paragraph break
282283 };
283284
285+ /^\@item\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
286+ my $columns = $1;
287+ $columns =~ s/\@tab/ : /;
288+
289+ $_ = "\n=item B&LT;". $columns ."&GT;\n";
290+ };
291+
292+ /^\@tab\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
293+ my $columns = $1;
294+ $columns =~ s/\@tab/ : /;
295+
296+ $_ = " : ". $columns;
297+ $section =~ s/\n+\s+$//;
298+ };
299+
284300 /^\@itemx?\s*(.+)?$/ and do {
285301 if (defined $1) {
286302 # Entity escapes prevent munging by the <> processing below.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t