buildtoc tweak to fix newline lossage
Gurusamy Sarathy [Sun, 7 May 2000 18:18:38 +0000 (18:18 +0000)]
p4raw-id: //depot/perl@6089

pod/buildtoc

index 21fee31..58bfc54 100644 (file)
@@ -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:/;