From b36ff90c6e2f9a5528c996a101fb3da2d34036de Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 10 Nov 2018 09:07:10 +0100 Subject: [PATCH] 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. --- lib/ManUtils/ManUtils.pm | 3 +++ 1 file changed, 3 insertions(+) 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,