Skip to content

Commit

Permalink
Rename one method per suggestion from rjbs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Jun 29, 2021
1 parent 6b0052b commit 7091698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/Pod-Html/lib/Pod/Html.pm
Expand Up @@ -326,7 +326,7 @@ sub pod2html {
}

my $podtree = parse_input_for_podtree($globals, $input);
$globals->{Title} = set_Title($globals, $podtree);
$globals->{Title} = set_Title_from_podtree($globals, $podtree);

# set options for the HTML generator
my $parser = Pod::Simple::XHTML::LocalPodLinks->new();
Expand Down Expand Up @@ -435,7 +435,7 @@ sub parse_input_for_podtree {
return $podtree;
}
sub set_Title {
sub set_Title_from_podtree {
my ($globals, $podtree) = @_;
unless(defined $globals->{Title}) {
if($podtree->[0] eq "Document" && ref($podtree->[2]) eq "ARRAY" &&
Expand Down

0 comments on commit 7091698

Please sign in to comment.