Subject: | Pod::PlainText is Missing cmd_head3() |
Date: | Mon, 6 Feb 2006 21:13:51 -0800 |
To: | bug-podparser [...] rt.cpan.org |
From: | David Wheeler <dwheeler [...] cpan.org> |
=head3 tags have been legal POD for quite some time, but I recently
ran into this in Pod::PlainText 2.02:
Can't locate object method "cmd_head3" via package "Pod::Readme" at /
usr/local/lib/perl5/5.8.7/Pod/PlainText.pm line 152, <GEN8> line 87.
The solution is to implement cmd_head3(). Something like this, perhaps?
# Third level heading.
sub cmd_head3 {
my $self = shift;
local $_ = shift;
s/\s+$//;
$_ = $self->interpolate ($_, shift);
if ($$self{alt}) {
$self->output ("\n= $_ =\n");
} else {
$self->output (' ' x ($$self{indent}) . $_ . "\n");
}
}