mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
doc: Change the multitable rendering in texi2pod
Makes it working better for our documentation purposes.
This commit is contained in:
parent
59388dac69
commit
be59675add
@ -277,6 +277,14 @@ INF: while(<$inf>) {
|
|||||||
$_ = "\n=over 4\n";
|
$_ = "\n=over 4\n";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/^\@(multitable)\s+{.*/ and do {
|
||||||
|
push @endwstack, $endw;
|
||||||
|
push @icstack, $ic;
|
||||||
|
$endw = $1;
|
||||||
|
$ic = "";
|
||||||
|
$_ = "\n=over 4\n";
|
||||||
|
};
|
||||||
|
|
||||||
/^\@((?:small)?example|display)/ and do {
|
/^\@((?:small)?example|display)/ and do {
|
||||||
push @endwstack, $endw;
|
push @endwstack, $endw;
|
||||||
$endw = $1;
|
$endw = $1;
|
||||||
@ -293,10 +301,10 @@ INF: while(<$inf>) {
|
|||||||
|
|
||||||
/^\@tab\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
|
/^\@tab\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
|
||||||
my $columns = $1;
|
my $columns = $1;
|
||||||
$columns =~ s/\@tab/ : /;
|
$columns =~ s/\@tab//;
|
||||||
|
|
||||||
$_ = " : ". $columns;
|
$_ = $columns;
|
||||||
$section =~ s/\n+\s+$//;
|
$section =~ s/$//;
|
||||||
};
|
};
|
||||||
|
|
||||||
/^\@itemx?\s*(.+)?$/ and do {
|
/^\@itemx?\s*(.+)?$/ and do {
|
||||||
|
Loading…
Reference in New Issue
Block a user