summaryrefslogtreecommitdiff
path: root/pod/buildtoc
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-01-05 21:36:07 +0000
committerNicholas Clark <nick@ccl4.org>2004-01-05 21:36:07 +0000
commit8927c9d824bf5d960d90467f403bdfa9cbaff854 (patch)
tree5ebf960519b00daae8c0303fd94349000b3dc8e6 /pod/buildtoc
parent671313d0b4c6e76be9972a12e28ff086c57ec7b7 (diff)
downloadperl-8927c9d824bf5d960d90467f403bdfa9cbaff854.tar.gz
Change the flag logic in buildtoc
p4raw-id: //depot/perl@22067
Diffstat (limited to 'pod/buildtoc')
-rw-r--r--pod/buildtoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/buildtoc b/pod/buildtoc
index 71f2a91244..a847f886f8 100644
--- a/pod/buildtoc
+++ b/pod/buildtoc
@@ -84,13 +84,13 @@ foreach (<MASTER>) {
next if /^\#/;
# At least one upper case letter somewhere in the first group
- if (/^(\S+)\s(.*)/ && $1 =~ tr/A-Z//) {
+ if (/^(\S+)\s(.*)/ && $1 =~ tr/h//) {
# it's a heading
my $flags = $1;
+ $flags =~ tr/h//d;
my %flags = (header => 1);
- $flags{toc_omit} = 1 if $flags =~ tr/O//d;
- $flags{include} = 1 if $flags =~ tr/I//d;
- $flags{aux} = 1 if $flags =~ tr/A//d;
+ $flags{toc_omit} = 1 if $flags =~ tr/o//d;
+ $flags{aux} = 1 if $flags =~ tr/a//d;
die "$0: Unknown flag found in heading line: $_" if length $flags;
push @Master, [\%flags, $2];