]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cd2nroff: gen: make `\>` in input to render as plain '>' in output
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Feb 2024 11:52:59 +0000 (12:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Feb 2024 12:48:14 +0000 (13:48 +0100)
The same (copy and pasted) fix/mistake as in gen.pl

scripts/cd2nroff

index 02460cc9da5bc1a6a945f125d839d0cd9d6c699f..96d2a367d6fee59a85af10463918078726ae9304 100755 (executable)
@@ -255,7 +255,7 @@ sub single {
             print STDERR "$f:$line:1:WARN: un-escaped < or > used\n";
         }
         # convert backslash-'<' or '> to just the second character
-        $d =~ s/\\([<<])/$1/g;
+        $d =~ s/\\([<>])/$1/g;
 
         # mentions of curl symbols with man pages use italics by default
         $d =~ s/((lib|)curl([^ ]*\(3\)))/\\fI$1\\fP/gi;