Skip to content

Commit

Permalink
Also handle =head[2-4] tags when processing pod #47
Browse files Browse the repository at this point in the history
  • Loading branch information
maros committed Jan 15, 2017
1 parent 1cb32b1 commit f98be61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MooseX/App/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ sub _pod_node_to_text {
push (@lines,"\n");
${$indent}--;
}
when (qr/head\d/) {
push (@lines,"\n",$node->content,"\n");
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions t/02_meta.t
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ is(Test01::CommandB->meta->command_long_description,'Some description of *comman
some code
some code
SUB HEADLINE
some more desc
* item 1
Expand Down
2 changes: 2 additions & 0 deletions t/testlib/Test01/CommandB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Some description of B<command B>
some code
some code
=head2 SUB HEADLINE
some more desc
=over
Expand Down

0 comments on commit f98be61

Please sign in to comment.