Skip to content

Commit

Permalink
Reverting to Pod::Defn which what is in Rakudo refs #43
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Aug 15, 2018
1 parent 0430fb9 commit d8ab051
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Pod/To/HTML.pm
Expand Up @@ -83,7 +83,7 @@ multi visit($root, :&pre, :&post, :&assemble = -> *% { Nil }) {
}

class Pod::List is Pod::Block { };
class Pod::DefnList is Pod::Block { };
class Pod::Defn is Pod::Block { };



Expand Down Expand Up @@ -138,10 +138,10 @@ sub assemble-list-items(:@content, :$node, *% ) {
}
# This is simpler than lists because we don't need to
# list
when Pod::DefnList {
when Pod::Defn {
$foundone = True;
unless +@newcont && @newcont[*-1] ~~ Pod::DefnList {
@newcont.push(Pod::DefnList.new());
unless +@newcont && @newcont[*-1] ~~ Pod::Defn {
@newcont.push(Pod::Defn.new());
}
@newcont[*-1].contents.push($_);
}
Expand Down Expand Up @@ -444,11 +444,11 @@ multi sub node2html(Pod::Config $node) {
return '';
}
multi sub node2html(Pod::DefnList $node ) {
multi sub node2html(Pod::Defn $node ) {
return "<dl>\n" ~ node2html($node.contents) ~ "\n</dl>\n";
}
multi sub node2html(Pod::DefnList $node) {
multi sub node2html(Pod::Defn $node) {
"<dt>" ~ node2html($node.term) ~ "</dt>\n" ~
"<dd>" ~ node2html($node.contents) ~ "</dd>\n";
Expand Down

0 comments on commit d8ab051

Please sign in to comment.