Skip to content

Commit

Permalink
blacklist usage messages again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 26, 2014
1 parent 90ba766 commit 2086b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -48,8 +48,8 @@ sub _html {

# Rewrite code blocks for syntax highlighting and correct indentation
for my $e ($dom->find('pre')->each) {
$e->replace_content(my $content = unindent $e->content_xml);
next if $content =~ /^\s*\$\s+/m || $content !~ /[\$\@\%]\w|->\w/m;
$e->replace_content(my $xml = unindent $e->content_xml);
next if $xml =~ /^\s*(?:\$|Usage:)\s+/m || $xml !~ /[\$\@\%]\w|->\w/m;
my $attrs = $e->attr;
my $class = $attrs->{class};
$attrs->{class} = defined $class ? "$class prettyprint" : 'prettyprint';
Expand Down

0 comments on commit 2086b36

Please sign in to comment.