]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
man pages: remove trailing whitespaces
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Aug 2021 13:31:31 +0000 (15:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Aug 2021 14:44:03 +0000 (16:44 +0200)
Extended test 1173 (via the manpage-syntax.pl script) to detect and warn
for them.

Ref: #7602
Reported-by: a1346054 on github
Closes #7604

docs/cmdline-opts/fail-with-body.d
docs/cmdline-opts/http3.d
docs/cmdline-opts/insecure.d
docs/cmdline-opts/quote.d
docs/cmdline-opts/ssl.d
docs/cmdline-opts/user-agent.d
docs/libcurl/libcurl-multi.3
docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.3
tests/data/test1173
tests/manpage-syntax.pl

index 13609ff017ee850028bf9891796fec72ea97b22f..e27d459f9f7ef0da5c847668cd4f57f227a8aaf7 100644 (file)
@@ -5,7 +5,6 @@ Category: http output
 Added: 7.76.0
 See-also: fail
 ---
-
 Return an error on server errors where the HTTP response code is 400 or
 greater). In normal cases when an HTTP server fails to deliver a document, it
 returns an HTML document stating so (which often also describes why and
index 8e3c30161b8eee0991135cbdce794996d4f42fb3..50630798f1b780e4a501106f30817ddf8eaf26f8 100644 (file)
@@ -8,7 +8,6 @@ Help: Use HTTP v3
 See-also: http1.1 http2
 Category: http
 ---
-
 WARNING: this option is experimental. Do not use in production.
 
 Tells curl to use HTTP version 3 directly to the host and port number used in
index 636f121e2b436d1ef60f581586aeb90d5680c02e..443ddd5074113ac23f1148006a9a756c1699d8e1 100644 (file)
@@ -5,7 +5,6 @@ Protocols: TLS
 See-also: proxy-insecure cacert
 Category: tls
 ---
-
 By default, every SSL connection curl makes is verified to be secure. This
 option allows curl to proceed and operate even for server connections
 otherwise considered insecure.
index f0e7be7a503e439c78fe423ac5600598132f2b25..3adb06f8a8ba03b9e54d984f7185983b5263232a 100644 (file)
@@ -5,7 +5,6 @@ Help: Send command(s) to server before transfer
 Protocols: FTP SFTP
 Category: ftp sftp
 ---
-
 Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
 sent BEFORE the transfer takes place (just after the initial PWD command in an
 FTP transfer, to be exact). To make commands take place after a successful
index 8df460106b2c22a708c251e83cf6e8619214dde2..39616bc2abb8923ebd5e8db6f78cbe555f0f4fbd 100644 (file)
@@ -4,7 +4,6 @@ Protocols: FTP IMAP POP3 SMTP
 Added: 7.20.0
 Category: tls
 ---
-
 Try to use SSL/TLS for the connection.  Reverts to a non-secure connection if
 the server doesn't support SSL/TLS.  See also --ftp-ssl-control and --ssl-reqd
 for different levels of encryption required.
index ec2ca82bb31b06ea72aae2f40fe560e210f8bd82..bcc3ddb65f012cc76e532ec59ae89b6925d409a4 100644 (file)
@@ -5,7 +5,6 @@ Help: Send User-Agent <name> to server
 Protocols: HTTP
 Category: important http
 ---
-
 Specify the User-Agent string to send to the HTTP server. To encode blanks in
 the string, surround the string with single quote marks. This header can also
 be set with the --header or the --proxy-header options.
index 77fe4c7569f1bb52796a701c286aec18cf20fd3f..aa408242e4ccdab0ae1bf0939edd8a7ab437a2c0 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -97,7 +97,7 @@ period for your select() calls.
 \fIcurl_multi_perform(3)\fP stores the number of still running transfers in
 one of its input arguments, and by reading that you can figure out when all
 the transfers in the multi handles are done. 'done' does not mean
-successful. One or more of the transfers may have failed. 
+successful. One or more of the transfers may have failed.
 
 To get information about completed transfers, to figure out success or not and
 similar, \fIcurl_multi_info_read(3)\fP should be called. It can return a
index d1c15fcb234204f9a5845111ab1e187b499f00d8..7f1b116c4c827ec0787ebcafcada10547d95fbaa 100644 (file)
@@ -53,7 +53,7 @@ if(curl) {
   curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443");
   blob.data = strpem;
   blob.len = strlen(strpem);
-  blob.flags = CURL_BLOB_COPY;  
+  blob.flags = CURL_BLOB_COPY;
   curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO_BLOB, &blob);
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index dd09f81d8abfa5ccd323ca2a74411f2a46037c4f..e23b0e8df3ab93cd235c68fd1a9eef7bcde8b309 100644 (file)
@@ -23,4 +23,10 @@ Basic man page syntax check
 </command>
 </client>
 
+<verify>
+<stderr>
+ok
+</stderr>
+</verify>
+
 </testcase>
index 184df6bbbe7ec4871182375725c2e2b4a3dca7c7..8885ec8ceba8b80809691ba75c2b165cc0eb9728 100644 (file)
@@ -6,7 +6,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 2019 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2019 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -50,6 +50,10 @@ sub scanmanpage {
                 $errors++;
             }
         }
+        if($_ =~ /[ \t]+$/) {
+            print STDERR "$file:$line trailing whitespace\n";
+            $errors++;
+        }
         $line++;
     }
     close(M);
@@ -60,4 +64,6 @@ for my $m (@manpages) {
     scanmanpage($m);
 }
 
+print STDERR "ok\n" if(!$errors);
+
 exit $errors;