Skip to content

Commit

Permalink
do not highlight usage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 25, 2014
1 parent 2a7e4e1 commit 9175c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -49,7 +49,7 @@ sub _html {
# Rewrite code blocks for syntax highlighting and correct indentation
for my $e ($dom->find('pre')->each) {
$e->replace_content(unindent $e->content_xml);
next if $e->all_text =~ /^\s*\$\s+/m;
next if $e->all_text =~ /^\s*(?:\$|Usage\:)\s+/m;
my $attrs = $e->attr;
my $class = $attrs->{class};
$attrs->{class} = defined $class ? "$class prettyprint" : 'prettyprint';
Expand Down

0 comments on commit 9175c3c

Please sign in to comment.