From: Daniel Stenberg Date: Tue, 28 Jan 2025 15:51:33 +0000 (+0100) Subject: cd2nroff: do not insist on quoted <> within backticks X-Git-Tag: curl-8_12_0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0009d0216a09a3e0ffa34fdbf0185917c449483;p=thirdparty%2Fcurl.git cd2nroff: do not insist on quoted <> within backticks Ref: #16118 Closes #16121 --- 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++; }