Skip to content

Commit 4e53b94

Browse files
committed
man pages: remove trailing whitespaces
Extended test 1173 (via the manpage-syntax.pl script) to detect and warn for them. Ref: #7602 Reported-by: a1346054 on github Closes #7604
1 parent 77c7399 commit 4e53b94

File tree

10 files changed

+16
-10
lines changed

10 files changed

+16
-10
lines changed

docs/cmdline-opts/fail-with-body.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Category: http output
55
Added: 7.76.0
66
See-also: fail
77
---
8-
98
Return an error on server errors where the HTTP response code is 400 or
109
greater). In normal cases when an HTTP server fails to deliver a document, it
1110
returns an HTML document stating so (which often also describes why and

docs/cmdline-opts/http3.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Help: Use HTTP v3
88
See-also: http1.1 http2
99
Category: http
1010
---
11-
1211
WARNING: this option is experimental. Do not use in production.
1312

1413
Tells curl to use HTTP version 3 directly to the host and port number used in

docs/cmdline-opts/insecure.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Protocols: TLS
55
See-also: proxy-insecure cacert
66
Category: tls
77
---
8-
98
By default, every SSL connection curl makes is verified to be secure. This
109
option allows curl to proceed and operate even for server connections
1110
otherwise considered insecure.

docs/cmdline-opts/quote.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Help: Send command(s) to server before transfer
55
Protocols: FTP SFTP
66
Category: ftp sftp
77
---
8-
98
Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
109
sent BEFORE the transfer takes place (just after the initial PWD command in an
1110
FTP transfer, to be exact). To make commands take place after a successful

docs/cmdline-opts/ssl.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Protocols: FTP IMAP POP3 SMTP
44
Added: 7.20.0
55
Category: tls
66
---
7-
87
Try to use SSL/TLS for the connection. Reverts to a non-secure connection if
98
the server doesn't support SSL/TLS. See also --ftp-ssl-control and --ssl-reqd
109
for different levels of encryption required.

docs/cmdline-opts/user-agent.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Help: Send User-Agent <name> to server
55
Protocols: HTTP
66
Category: important http
77
---
8-
98
Specify the User-Agent string to send to the HTTP server. To encode blanks in
109
the string, surround the string with single quote marks. This header can also
1110
be set with the --header or the --proxy-header options.

docs/libcurl/libcurl-multi.3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.\" * | (__| |_| | _ <| |___
66
.\" * \___|\___/|_| \_\_____|
77
.\" *
8-
.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
8+
.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
99
.\" *
1010
.\" * This software is licensed as described in the file COPYING, which
1111
.\" * you should have received as part of this distribution. The terms
@@ -97,7 +97,7 @@ period for your select() calls.
9797
\fIcurl_multi_perform(3)\fP stores the number of still running transfers in
9898
one of its input arguments, and by reading that you can figure out when all
9999
the transfers in the multi handles are done. 'done' does not mean
100-
successful. One or more of the transfers may have failed.
100+
successful. One or more of the transfers may have failed.
101101

102102
To get information about completed transfers, to figure out success or not and
103103
similar, \fIcurl_multi_info_read(3)\fP should be called. It can return a

docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if(curl) {
5353
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443");
5454
blob.data = strpem;
5555
blob.len = strlen(strpem);
56-
blob.flags = CURL_BLOB_COPY;
56+
blob.flags = CURL_BLOB_COPY;
5757
curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO_BLOB, &blob);
5858
ret = curl_easy_perform(curl);
5959
curl_easy_cleanup(curl);

tests/data/test1173

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ Basic man page syntax check
2323
</command>
2424
</client>
2525

26+
<verify>
27+
<stderr>
28+
ok
29+
</stderr>
30+
</verify>
31+
2632
</testcase>

tests/manpage-syntax.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# | (__| |_| | _ <| |___
77
# \___|\___/|_| \_\_____|
88
#
9-
# Copyright (C) 2019 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
9+
# Copyright (C) 2019 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
1010
#
1111
# This software is licensed as described in the file COPYING, which
1212
# you should have received as part of this distribution. The terms
@@ -50,6 +50,10 @@ sub scanmanpage {
5050
$errors++;
5151
}
5252
}
53+
if($_ =~ /[ \t]+$/) {
54+
print STDERR "$file:$line trailing whitespace\n";
55+
$errors++;
56+
}
5357
$line++;
5458
}
5559
close(M);
@@ -60,4 +64,6 @@ sub scanmanpage {
6064
scanmanpage($m);
6165
}
6266

67+
print STDERR "ok\n" if(!$errors);
68+
6369
exit $errors;

0 commit comments

Comments
 (0)