summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/process_docs.pl3
1 files changed, 2 insertions, 1 deletions
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;