Skip to content

Commit

Permalink
It's "min", not "max". Duh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Parsons committed Aug 11, 2011
1 parent 7c4ca05 commit 7e38bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/To/HTML.pm
Expand Up @@ -63,7 +63,7 @@ sub buildindexes {
} }


sub heading2html($pod) { sub heading2html($pod) {
my $lvl = max($pod.level, 6); my $lvl = min($pod.level, 6);
my $txt = escape($pod.content[0].content.Str, 'html'); my $txt = escape($pod.content[0].content.Str, 'html');
@indexes.push: Pair.new(key => $lvl, value => $txt); @indexes.push: Pair.new(key => $lvl, value => $txt);
return "<h$lvl><a class='u' href='#___top' title='click to go to top of document' name='$txt'>{$txt}</a></h$lvl>\n"; return "<h$lvl><a class='u' href='#___top' title='click to go to top of document' name='$txt'>{$txt}</a></h$lvl>\n";
Expand Down

0 comments on commit 7e38bdb

Please sign in to comment.