aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-02-02 18:18:31 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-02-02 18:18:31 +0100
commit1dd7165c88ef50819e0a4fdbfc782333537c4e02 (patch)
treeddacf28e02be4fdcdf66d49a308ccb7e5f29606b
parent55c522997bb70ac36aac93759a6cf3efb4213561 (diff)
downloadApp::Rakuman-1dd7165c88ef50819e0a4fdbfc782333537c4e02.tar.gz
App::Rakuman-1dd7165c88ef50819e0a4fdbfc782333537c4e02.tar.bz2
Fix bug with pygmentizing
-rw-r--r--lib/Pod/To/Rakuman.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Pod/To/Rakuman.pm6 b/lib/Pod/To/Rakuman.pm6
index c1a7b81..c850875 100644
--- a/lib/Pod/To/Rakuman.pm6
+++ b/lib/Pod/To/Rakuman.pm6
@@ -19,7 +19,7 @@ multi method render (Pod::Block::Code:D $pod --> Str) {
my $block = Text::BorderedBlock.new;
my $body;
- if ($pod.config<lang> && %*ENV<RAKUMAN_PYGMENTIZE> // '' ne '0' && which('pygmentize')) {
+ if ($pod.config<lang>:exists && %*ENV<RAKUMAN_PYGMENTIZE> // '' ne '0' && which('pygmentize')) {
my @cmd = «
pygmentize
-s