Skip to content

Commit 3fb2dfe

Browse files
author
Geoffrey Broadwell
committed
Fix naive refactoring bug in previous commit
1 parent a7d2b13 commit 3fb2dfe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

htmlify.pl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ (Bool :$debug, Bool :$typegraph = False)
118118
write-language-file(:$dr, :$what, :$pod, :$podname);
119119
}
120120
else {
121-
write-type-file(:$dr, :$what, :$pod, :$podname);
121+
say pod-gist($pod[0]) if $*DEBUG;
122+
write-type-file(:$dr, :$what, :pod($pod[0]), :$podname);
122123
}
123124
}
124125

@@ -174,9 +175,6 @@ (Bool :$debug, Bool :$typegraph = False)
174175
}
175176

176177
sub write-type-file(:$dr, :$what, :$pod, :$podname) {
177-
$pod = $pod[0];
178-
say pod-gist($pod) if $*DEBUG;
179-
180178
my @chunks = chunks-grep($pod.content,
181179
:from({ $_ ~~ Pod::Heading and .level == 2}),
182180
:to({ $^b ~~ Pod::Heading and $^b.level <= $^a.level}),

0 commit comments

Comments
 (0)