Skip to content

Commit

Permalink
Removed a overeager test for the next tagname
Browse files Browse the repository at this point in the history
commit e161572705 in git://github.com/theory/pod-simple.git
    Fixed a bug in Pod::Simple::HTML where a definition term item with no
    corresponding definition item would be output with no closing </a></dt>. (RT #
    37107 from Kevin Ryde).
  • Loading branch information
dafrito committed Aug 16, 2011
1 parent 0c11b13 commit f9b1812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/Simple/HTML.pm
Expand Up @@ -544,7 +544,7 @@ sub _do_middle_main_loop {
$stack[-1] = $tagmap->{"/$tagname"};
if( $tagname eq 'item-text' and defined(my $next = $self->get_token) ) {
$self->unget_token($next);
if( $next->type eq 'start' and $next->tagname !~ m/^item-/s ) {
if( $next->type eq 'start' ) {
print $fh $tagmap->{"/item-text"},$tagmap->{"item-body"};
$stack[-1] = $tagmap->{"/item-body"};
}
Expand Down

0 comments on commit f9b1812

Please sign in to comment.