summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-11-10 09:07:10 +0100
committerYorhel <git@yorhel.nl>2018-11-10 09:07:14 +0100
commitb36ff90c6e2f9a5528c996a101fb3da2d34036de (patch)
treef07995c0fe3395974ab2dc3ffada9891af7c679c /lib
parent99628559edfb671977bda0b151f8946cc1fc3e3e (diff)
Fix invocation of groff 1.22.3 to pass on -P-c
Because, without that argument, groff (invoking grotty) will output SGR escape sequences, which we're not ready to deal with.
Diffstat (limited to 'lib')
-rw-r--r--lib/ManUtils/ManUtils.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ManUtils/ManUtils.pm b/lib/ManUtils/ManUtils.pm
index ef59f5c..8b157ca 100644
--- a/lib/ManUtils/ManUtils.pm
+++ b/lib/ManUtils/ManUtils.pm
@@ -67,6 +67,9 @@ sub fmt {
push @$errors, "grog detected several macro packages: $double. Using $macros. (@cmd)";
}
+ # grog 1.22.3 somehow loses the -P-c argument, let's make sure it's in the list.
+ splice @cmd, 1, 0, '-P-c';
+
my $groff = run_cmd \@cmd,
'<' => \$input,
'>' => \my $fmt,