summaryrefslogtreecommitdiff
path: root/pod/splitpod
diff options
context:
space:
mode:
authorTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +0000
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commit40d50c580e6c25e8b1b8fe1baed51a3d15af70f9 (patch)
treee9d97ccea005ced62aba91a8b637492ef7e18bdb /pod/splitpod
parent84850974f570c6c594cc0df54611ffc5f0b26130 (diff)
downloadperl-40d50c580e6c25e8b1b8fe1baed51a3d15af70f9.tar.gz
splitpod broken in 5.004_01
> From: Hans Mulder <hansmu@xs4all.nl> > > Splitpod is broken in 5.004_01. Darn, my fault. Thanks for this and your other bug reports. I guess _02 will be sooner rather than later. p5p-msgid: 9706241612.AA09119@toad.ig.co.uk
Diffstat (limited to 'pod/splitpod')
-rwxr-xr-xpod/splitpod12
1 files changed, 9 insertions, 3 deletions
diff --git a/pod/splitpod b/pod/splitpod
index 889dfa215a..fd38e51acf 100755
--- a/pod/splitpod
+++ b/pod/splitpod
@@ -12,23 +12,29 @@ while (<>) {
if (s/=item (\S+)/$1/) {
#$cur = "POSIX::" . $1;
+ $next{$cur} = $1;
$cur = $1;
$syn{$cur} .= $_;
next;
} else {
#s,L</,L<POSIX/,g;
s,L</,L<perlfunc/,g;
- push @{$pod{$cur} ||= []}, $_ if $cur;
+ push @{$pod{$cur}}, $_ if $cur;
}
}
for $f ( keys %syn ) {
- $type = $Type{$f} || next;
+ next unless $Type{$f};
$flavor = $Flavor{$f};
$orig = $f;
($name = $f) =~ s/\W//g;
+
+ # deal with several functions sharing a description
+ $func = $orig;
+ $func = $next{$func} until $pod{$func};
+ my $body = join "", @{$pod{$func}};
+
# deal with unbalanced =over and =back cause by the split
- my $body = $pod{$orig};
my $has_over = $body =~ /^=over/;
my $has_back = $body =~ /^=back/;
$body =~ s/^=over\s*//m if $has_over and !$has_back;