[FFmpeg-devel] [PATCH] doc/texi2pod: add support to @ifhtml and @ifnothtml directives
Stefano Sabatini
stefasab at gmail.com
Sun Dec 16 20:18:22 CET 2012
With these commands it is possible to add HTML and non-HTML snippets,
which will be useful for the "See Also" manual chapters.
---
doc/texi2pod.pl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 99576c7..5ff8857 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -156,14 +156,14 @@ INF: while(<$inf>) {
# Ignore @end foo, where foo is not an operation which may
# cause us to skip, if we are presently skipping.
my $ended = $1;
- next if $skipping && $ended !~ /^(?:ifset|ifclear|ignore|menu|iftex)$/;
+ next if $skipping && $ended !~ /^(?:ifset|ifclear|ignore|menu|iftex|ifhtml|ifnothtml)$/;
die "\@end $ended without \@$ended at line $.\n" unless defined $endw;
die "\@$endw ended by \@end $ended at line $.\n" unless $ended eq $endw;
$endw = pop @endwstack;
- if ($ended =~ /^(?:ifset|ifclear|ignore|menu|iftex)$/) {
+ if ($ended =~ /^(?:ifset|ifclear|ignore|menu|iftex|ifhtml|ifnothtml)$/) {
$skipping = pop @skstack;
next;
} elsif ($ended =~ /^(?:example|smallexample|display)$/) {
@@ -196,11 +196,11 @@ INF: while(<$inf>) {
next;
};
- /^\@(ignore|menu|iftex)\b/ and do {
+ /^\@(ignore|menu|iftex|ifhtml|ifnothtml)\b/ and do {
push @endwstack, $endw;
push @skstack, $skipping;
$endw = $1;
- $skipping = 1;
+ $skipping = $endw !~ /ifnothtml/;
next;
};
--
1.7.9.5
More information about the ffmpeg-devel
mailing list