cd2nroff: do not insist on quoted <> within backticks

Ref: #16118
Closes #16121
This commit is contained in:
Daniel Stenberg 2025-01-28 16:51:33 +01:00
parent 4519a9c887
commit b0009d0216
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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++;
}