Permalink
Browse files

don't render TITLE sections

they already produce the <title> and an <h1></h1>. Twice is enough
  • Loading branch information...
1 parent 5be64c8 commit 8965e2124eddb1e431fd8031d14f2afa901237fb @moritz moritz committed Jul 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Pod/To/HTML.pm
View
@@ -193,6 +193,7 @@ multi sub node2html(Pod::Block::Named $node) returns Str {
default {
if $node.name eq 'TITLE' {
$title = node2text($node.content);
+ return '';
}
elsif $node.name ~~ any(<VERSION DESCRIPTION AUTHOR COPYRIGHT SUMMARY>)
and $node.content[0] ~~ Pod::Block::Para {

0 comments on commit 8965e21

Please sign in to comment.