CURLOPT_COOKIELIST.3: fix formatting mistake

Also, updated manpage-syntax.pl to make it detect this error in test
1173.

Reported-by: ProceduralMan on github
Fixes #9639
Closes #9640
This commit is contained in:
Daniel Stenberg 2022-10-04 09:23:21 +02:00
parent 2b309560c1
commit 90ddfa465b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 9 additions and 1 deletions

View 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.

View 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