Browse Source

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.
Yorhel 2 months ago
parent
commit
b36ff90c6e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/ManUtils/ManUtils.pm

+ 3
- 0
lib/ManUtils/ManUtils.pm View File

@@ -67,6 +67,9 @@ sub fmt {
67 67
       push @$errors, "grog detected several macro packages: $double. Using $macros. (@cmd)";
68 68
     }
69 69
 
70
+    # grog 1.22.3 somehow loses the -P-c argument, let's make sure it's in the list.
71
+    splice @cmd, 1, 0, '-P-c';
72
+
70 73
     my $groff = run_cmd \@cmd,
71 74
       '<' => \$input,
72 75
       '>' => \my $fmt,

Loading…
Cancel
Save