Skip to content

Commit 418db99

Browse files
committed
Merge branch '15' of git://github.com/ahalbert/Pod-To-HTML into ahalbert-15
2 parents f4e0b89 + 8c73436 commit 418db99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Pod/To/HTML.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,11 @@ multi sub node2html(Pod::Block::Named $node) {
340340
}
341341
when 'para' { return node2html($node.contents[0]); }
342342
when 'defn' {
343-
return node2html($node.contents[0]) ~ "\n"
344-
~ node2html($node.contents[1..*-1]);
343+
return "<dl>" ~
344+
"<dt>" ~ node2html($node.contents[0].contents[1]) ~ "</dt>" ~
345+
"<dd>" ~ node2html($node.contents[0].contents[2..*-1]) ~ "</dd>" ~
346+
"</dl>\n" ~
347+
node2html($node.contents[1..*-1]);
345348
}
346349
when 'Image' {
347350
my $url;

0 commit comments

Comments
 (0)