summaryrefslogtreecommitdiff
path: root/pod/buildtoc
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-07 18:18:38 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-07 18:18:38 +0000
commit7494063982d7975076fa26eea0959791b05a536a (patch)
treefb133cc5744643e3c216ddc2daae025f4d4c668d /pod/buildtoc
parent3aa33fe55ba20233f560f0c549294d8e83806012 (diff)
downloadperl-7494063982d7975076fa26eea0959791b05a536a.tar.gz
buildtoc tweak to fix newline lossage
p4raw-id: //depot/perl@6089
Diffstat (limited to 'pod/buildtoc')
-rw-r--r--pod/buildtoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/buildtoc b/pod/buildtoc
index 21fee31b38..58bfc54fd7 100644
--- a/pod/buildtoc
+++ b/pod/buildtoc
@@ -177,10 +177,11 @@ sub podset {
$inhead2 = 1;
output $_; nl(); next;
}
- if (s/^=item ([^=].*)\n/$1/) {
+ if (s/^=item ([^=].*)/$1/) {
next if $pod eq 'perldiag';
s/^\s*\*\s*$// && next;
s/^\s*\*\s*//;
+ s/\n/ /g;
s/\s+$//;
next if /^[\d.]+$/;
next if $pod eq 'perlmodlib' && /^ftp:/;