From: Daniel Stenberg Date: Tue, 4 Oct 2022 07:23:21 +0000 (+0200) Subject: CURLOPT_COOKIELIST.3: fix formatting mistake X-Git-Tag: curl-7_86_0~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90ddfa465bf189d7010fa5f5a2792b2c31e0af51;p=thirdparty%2Fcurl.git 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 --- diff --git a/docs/libcurl/opts/CURLOPT_COOKIELIST.3 b/docs/libcurl/opts/CURLOPT_COOKIELIST.3 index 572da56cee..bd1a31096e 100644 --- a/docs/libcurl/opts/CURLOPT_COOKIELIST.3 +++ b/docs/libcurl/opts/CURLOPT_COOKIELIST.3 @@ -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. diff --git a/tests/manpage-syntax.pl b/tests/manpage-syntax.pl index bf69370ca4..f345525617 100644 --- a/tests/manpage-syntax.pl +++ b/tests/manpage-syntax.pl @@ -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