Skip to content

Commit 0430fb9

Browse files
committed
Fixed syntax error
But the test is still not working. Perl6 2018.06 is still not returning blocks labeled correctly.
1 parent 58e0ced commit 0430fb9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Pod/To/HTML.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ sub assemble-list-items(:@content, :$node, *% ) {
138138
}
139139
# This is simpler than lists because we don't need to
140140
# list
141-
when Pod::Defn {
141+
when Pod::DefnList {
142142
$foundone = True;
143143
unless +@newcont && @newcont[*-1] ~~ Pod::DefnList {
144144
@newcont.push(Pod::DefnList.new());
@@ -448,7 +448,7 @@ multi sub node2html(Pod::DefnList $node ) {
448448
return "<dl>\n" ~ node2html($node.contents) ~ "\n</dl>\n";
449449
450450
}
451-
multi sub node2html(Pod::Defn $node) {
451+
multi sub node2html(Pod::DefnList $node) {
452452
453453
"<dt>" ~ node2html($node.term) ~ "</dt>\n" ~
454454
"<dd>" ~ node2html($node.contents) ~ "</dd>\n";

t/075-defn.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ Having the quality of general expediency.
1919
2020
=end pod
2121

22+
say $=pod[0].perl;
2223

2324
my $html = pod2html($=pod[0]);
2425

26+
say $html;
2527
ok $html ~~ ms[[
2628
'<dl>'
2729
'<dt>MAD</dt>'

0 commit comments

Comments
 (0)