Mercurial > hg > CbC > CbC_gcc
comparison contrib/texi2pod.pl @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
162 } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) { | 162 } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) { |
163 $_ = "\n=back\n"; | 163 $_ = "\n=back\n"; |
164 $ic = pop @icstack; | 164 $ic = pop @icstack; |
165 } elsif ($ended eq "multitable") { | 165 } elsif ($ended eq "multitable") { |
166 $_ = "\n=back\n"; | 166 $_ = "\n=back\n"; |
167 $ic = pop @icstack; | |
167 } else { | 168 } else { |
168 die "unknown command \@end $ended at line $.\n"; | 169 die "unknown command \@end $ended at line $.\n"; |
169 } | 170 } |
170 }; | 171 }; |
171 | 172 |
286 $endw = "enumerate"; | 287 $endw = "enumerate"; |
287 }; | 288 }; |
288 | 289 |
289 /^\@multitable\s.*/ and do { | 290 /^\@multitable\s.*/ and do { |
290 push @endwstack, $endw; | 291 push @endwstack, $endw; |
292 push @icstack, $ic; | |
291 $endw = "multitable"; | 293 $endw = "multitable"; |
294 $ic = ""; | |
292 $_ = "\n=over 4\n"; | 295 $_ = "\n=over 4\n"; |
293 }; | 296 }; |
294 | 297 |
295 /^\@([fv]?table)\s+(\@[a-z]+)/ and do { | 298 /^\@([fv]?table)\s+(\@[a-z]+)/ and do { |
296 push @endwstack, $endw; | 299 push @endwstack, $endw; |
310 $endw = $1; | 313 $endw = $1; |
311 $shift = "\t"; | 314 $shift = "\t"; |
312 $_ = ""; # need a paragraph break | 315 $_ = ""; # need a paragraph break |
313 }; | 316 }; |
314 | 317 |
315 /^\@item\s+(.*\S)\s*$/ and $endw eq "multitable" and do { | 318 /^\@(headitem|item)\s+(.*\S)\s*$/ and $endw eq "multitable" and do { |
316 @columns = (); | 319 @columns = (); |
317 for $column (split (/\s*\@tab\s*/, $1)) { | 320 $item = $1; |
321 for $column (split (/\s*\@tab\s*/, $2)) { | |
318 # @strong{...} is used a @headitem work-alike | 322 # @strong{...} is used a @headitem work-alike |
319 $column =~ s/^\@strong\{(.*)\}$/$1/; | 323 $column =~ s/^\@strong\{(.*)\}$/$1/; |
324 $column = "I<$column>" if $item eq "headitem"; | |
320 push @columns, $column; | 325 push @columns, $column; |
321 } | 326 } |
322 $_ = "\n=item ".join (" : ", @columns)."\n"; | 327 $_ = "\n=item ".join (" : ", @columns)."\n"; |
323 }; | 328 }; |
324 | 329 |