[FFmpeg-cvslog] doc: Change the multitable rendering in texi2pod
Luca Barbato
git at videolan.org
Wed Apr 9 04:33:21 CEST 2014
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Apr 7 01:49:39 2014 +0000| [be59675add2a05a7400b1abf86201ab069d7b1dd] | committer: Vittorio Giovara
doc: Change the multitable rendering in texi2pod
Makes it working better for our documentation purposes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be59675add2a05a7400b1abf86201ab069d7b1dd
---
doc/texi2pod.pl | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 609568e..54d5717 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -277,6 +277,14 @@ INF: while(<$inf>) {
$_ = "\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 {
push @endwstack, $endw;
$endw = $1;
@@ -293,10 +301,10 @@ INF: while(<$inf>) {
/^\@tab\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
my $columns = $1;
- $columns =~ s/\@tab/ : /;
+ $columns =~ s/\@tab//;
- $_ = " : ". $columns;
- $section =~ s/\n+\s+$//;
+ $_ = $columns;
+ $section =~ s/$//;
};
/^\@itemx?\s*(.+)?$/ and do {
More information about the ffmpeg-cvslog
mailing list