From ffad28696e1078c92117a79fb328d6dce40a62d7 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 30 Jul 2024 13:10:58 +0200 Subject: [PATCH] Unbreak groff single quotes and backticks character replacements --- lib/ManUtils/ManUtils.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ManUtils/ManUtils.pm b/lib/ManUtils/ManUtils.pm index 0502f39..3501b9a 100644 --- a/lib/ManUtils/ManUtils.pm +++ b/lib/ManUtils/ManUtils.pm @@ -34,6 +34,9 @@ sub fmt { ".hy 0\n.de hy\n..\n" # Emulate man-db's --nj option .".na\n.de ad\n..\n" + # Unbreak some quotes, there's plenty of man pages that ("incorrectly") use these for code samples. + .".char ` \\`\n" + .".char ' \\[aq]\n" .encode_utf8($input); my $groff = run_cmd \@cmd,