Permalink
Browse files

fix fencepost in iterator

  • Loading branch information...
1 parent f441c0f commit e0f209120a140f4791193577dc074cd18a340d4b @rjbs rjbs committed Oct 28, 2009
Showing with 4 additions and 1 deletion.
  1. +3 −0 Changes
  2. +1 −1 lib/Pod/Elemental/Transformer/WikiDoc.pm
View
@@ -1,4 +1,7 @@
Revision history for {{$dist->name}}
+0.093001 2009-10-27
+ fix fencepost error that prevent last-position region from working
+
0.093000 2009-10-27
first release
@@ -82,7 +82,7 @@ sub transform_node {
my ($self, $node) = @_;
my $children = $node->children;
- PASS: for (my $i = 0; $i < $children->length - 1; $i++) {
+ PASS: for (my $i = 0; $i < $children->length; $i++) {
my $para = $children->[$i];
next unless $para->isa('Pod::Elemental::Element::Pod5::Region')
and ! $para->is_pod

0 comments on commit e0f2091

Please sign in to comment.