]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_COOKIELIST.3: fix formatting mistake
authorDaniel Stenberg <daniel@haxx.se>
Tue, 4 Oct 2022 07:23:21 +0000 (09:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Oct 2022 09:59:55 +0000 (11:59 +0200)
Also, updated manpage-syntax.pl to make it detect this error in test
1173.

Reported-by: ProceduralMan on github
Fixes #9639
Closes #9640

docs/libcurl/opts/CURLOPT_COOKIELIST.3
tests/manpage-syntax.pl

index 572da56cee802d5f5a1839a150ee11fb44ffdacd..bd1a31096edf36b254529526a7ce6d7aa89a6561 100644 (file)
@@ -116,7 +116,7 @@ online here: https://curl.se/docs/http-cookies.html
 
 \fBFLUSH\fP was added in 7.17.1
 
-\fFRELOAD\fP was added in 7.39.0
+\fBRELOAD\fP was added in 7.39.0
 .SH RETURN VALUE
 Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
index bf69370ca4e6d6721b23bfd2a0b5018d3896d2a7..f345525617347ade1f64704202a5123f8e54de1a 100644 (file)
@@ -163,6 +163,14 @@ sub scanmanpage {
                 $errors++;
             }
         }
+        if($_ =~ /(.*)\\f([^BIP])/) {
+            my ($pre, $format) = ($1, $2);
+            if($pre !~ /\\\z/) {
+                # only if there wasn't another backslash before the \f
+                print STDERR "$file:$line suspicios \\f format!\n";
+                $errors++;
+            }
+        }
         if($optpage && $SH && ($SH !~ /^(SYNOPSIS|EXAMPLE|NAME|SEE ALSO)/i) &&
            ($_ =~ /(.*)(CURL(OPT_|MOPT_|INFO_)[A-Z0-9_]*)/)) {
             # an option with its own man page, check that it is tagged