From b0009d0216a09a3e0ffa34fdbf0185917c449483 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 28 Jan 2025 16:51:33 +0100 Subject: [PATCH] cd2nroff: do not insist on quoted <> within backticks Ref: #16118 Closes #16121 --- scripts/cd2nroff | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cd2nroff b/scripts/cd2nroff index 86cae21379..01b2f1aca6 100755 --- a/scripts/cd2nroff +++ b/scripts/cd2nroff @@ -419,7 +419,12 @@ sub single { # *italics* $d =~ s/\*(\S.*?)\*/\\fI$1\\fP/g; - if($d =~ /[^\\][\<\>]/) { + my $back = $d; + + # remove all backticked pieces + $back =~ s/\`(.*?)\`//g; + + if($back =~ /[^\\][\<\>]/) { print STDERR "$f:$line:1:ERROR: un-escaped < or > used\n"; $errors++; } -- 2.47.3