Skip to content

Commit

Permalink
Flatten Pod::Block contents array
Browse files Browse the repository at this point in the history
Due to new GLR changes, the contents attribute is handed an Array that
doesn't want to flatten.
  • Loading branch information
hoelzro committed Aug 15, 2015
1 parent ea96dbc commit 1ee1808
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/Pod.pm
Expand Up @@ -7,6 +7,12 @@ my class Pod::Block {
DEPRECATED("Pod::Block.new(:contents)", |<2014.09 2015.09>, :up(5), :what('Pod::Block.new(:content)'));
@!contents.push: $content.list;
}
my @new-contents;

for @!contents {
@new-contents.push: flat @($_);
}
@!contents = @new-contents;
}

sub pod-gist(Pod::Block $pod, $level = 0) {
Expand Down

0 comments on commit 1ee1808

Please sign in to comment.