Skip to content
Browse files

It's "min", not "max". Duh.

  • Loading branch information...
1 parent 7c4ca05 commit 7e38bdbccaff9d8e75a33e88e81dc783da5d18e4 @flussence flussence committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Pod/To/HTML.pm
View
2 lib/Pod/To/HTML.pm
@@ -63,7 +63,7 @@ sub buildindexes {
}
sub heading2html($pod) {
- my $lvl = max($pod.level, 6);
+ my $lvl = min($pod.level, 6);
my $txt = escape($pod.content[0].content.Str, 'html');
@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";

0 comments on commit 7e38bdb

Please sign in to comment.
Something went wrong with that request. Please try again.