From: ikegami Date: Wed, 23 Sep 2009 22:58:34 +0000 (-0400) Subject: Fix bad generated pod for last entries in perl{var,func} X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=906bad61c3bd0dd3a56a226b2981e4d14d5e71c9;p=p5sagit%2Fp5-mst-13.2.git Fix bad generated pod for last entries in perl{var,func} --- diff --git a/ext/Pod-Perldoc/lib/Pod/Perldoc.pm b/ext/Pod-Perldoc/lib/Pod/Perldoc.pm index ef54796..97edc25 100644 --- a/ext/Pod-Perldoc/lib/Pod/Perldoc.pm +++ b/ext/Pod-Perldoc/lib/Pod/Perldoc.pm @@ -932,6 +932,7 @@ sub search_perlvar { ++$inlist; } elsif (/^=back/) { + last if $found && !$inheader && !$inlist; --$inlist; } push @$pod, $_; @@ -991,6 +992,7 @@ sub search_perlfunc { ++$inlist; } elsif (/^=back/) { + last if $found > 1 and not $inlist; --$inlist; } push @$pod, $_;