diff options
Diffstat (limited to 'util/process_docs.pl')
-rw-r--r-- | util/process_docs.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/process_docs.pl b/util/process_docs.pl index 150e48bf08..c07cb755cc 100644 --- a/util/process_docs.pl +++ b/util/process_docs.pl @@ -87,8 +87,10 @@ foreach my $subdir (keys %{$options{subdir}}) { print STDERR "Found section number $1\n" if $options{debug}; $podinfo{section} = $1; } - last if m|^=head1| && defined $podinfo{lastsect} eq "NAME"; - if (m|^head1=\s*(.*)|) { + last if (m|^=head1| + && defined $podinfo{lastsect} + && $podinfo{lastsect} eq "NAME"); + if (m|^=head1\s*(.*)|) { $podinfo{lastsect} = $1; $podinfo{lastsect} =~ s/\s+$//; $podinfo{lastsecttext} = ""; |