From: Richard Levitte Date: Sat, 21 May 2016 18:50:48 +0000 (+0200) Subject: process_docs.pl: When starting to read a new head1 section, remove previous text X-Git-Tag: OpenSSL_1_1_0-pre6~739 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e4860d531dc52d6616e133a4a68f268bf44e1501;p=oweals%2Fopenssl.git process_docs.pl: When starting to read a new head1 section, remove previous text Reviewed-by: Rich Salz --- diff --git a/util/process_docs.pl b/util/process_docs.pl index eaa4964869..150e48bf08 100644 --- a/util/process_docs.pl +++ b/util/process_docs.pl @@ -91,9 +91,10 @@ foreach my $subdir (keys %{$options{subdir}}) { if (m|^head1=\s*(.*)|) { $podinfo{lastsect} = $1; $podinfo{lastsect} =~ s/\s+$//; + $podinfo{lastsecttext} = ""; } next if (m|^=| || m|^\s*$|); - $podinfo{lastsecttext} .= " "; + $podinfo{lastsecttext} .= " " if $podinfo{lastsecttext}; $podinfo{lastsecttext} .= $_; } close $pod_fh;