Skip to content

Commit 32456c5

Browse files
committed
Merging the changes upstream
2 parents d8ab051 + 8fbb00b commit 32456c5

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"perl" : "6.*",
33
"name" : "Pod::To::HTML",
4-
"version" : "0.3.21",
4+
"version" : "0.3.22",
55
"description" : "Convert Perl 6 Pod to HTML",
66
"license" : "Artistic-2.0",
77
"depends" : ["URI"],

lib/Pod/To/HTML.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ multi visit($root, :&pre, :&post, :&assemble = -> *% { Nil }) {
8383
}
8484

8585
class Pod::List is Pod::Block { };
86-
class Pod::Defn is Pod::Block { };
87-
86+
class Pod::DefnList is Pod::Block { };
87+
BEGIN { if ::('Pod::Defn') ~~ Failure { CORE::Pod::<Defn> := class {} } }
8888

8989

9090
sub assemble-list-items(:@content, :$node, *% ) {
@@ -140,8 +140,8 @@ sub assemble-list-items(:@content, :$node, *% ) {
140140
# list
141141
when Pod::Defn {
142142
$foundone = True;
143-
unless +@newcont && @newcont[*-1] ~~ Pod::Defn {
144-
@newcont.push(Pod::Defn.new());
143+
unless +@newcont && @newcont[*-1] ~~ Pod::DefnList {
144+
@newcont.push(Pod::DefnList.new());
145145
}
146146
@newcont[*-1].contents.push($_);
147147
}
@@ -444,7 +444,7 @@ multi sub node2html(Pod::Config $node) {
444444
return '';
445445
}
446446
447-
multi sub node2html(Pod::Defn $node ) {
447+
multi sub node2html(Pod::DefnList $node ) {
448448
return "<dl>\n" ~ node2html($node.contents) ~ "\n</dl>\n";
449449
450450
}

t/075-defn.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!perl6
22

33
use Test;
4+
5+
# do NOT move this below `Pod::To::HTML` line, the module exports a fake Pod::Defn
6+
constant no-pod-defn = ::('Pod::Defn') ~~ Failure;
7+
48
use Pod::To::HTML;
59

10+
plan :skip-all<Compiler does not support Pod::Defn> if no-pod-defn;
611
plan 1;
712

813
=begin pod

0 commit comments

Comments
 (0)