diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-07 18:18:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-07 18:18:38 +0000 |
commit | 7494063982d7975076fa26eea0959791b05a536a (patch) | |
tree | fb133cc5744643e3c216ddc2daae025f4d4c668d /pod/buildtoc | |
parent | 3aa33fe55ba20233f560f0c549294d8e83806012 (diff) | |
download | perl-7494063982d7975076fa26eea0959791b05a536a.tar.gz |
buildtoc tweak to fix newline lossage
p4raw-id: //depot/perl@6089
Diffstat (limited to 'pod/buildtoc')
-rw-r--r-- | pod/buildtoc | 3 |
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:/; |