]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gen.pl: replace leading single quotes with \(aq
authorDaniel Stenberg <daniel@haxx.se>
Mon, 1 Nov 2021 08:55:28 +0000 (09:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Nov 2021 14:37:10 +0000 (15:37 +0100)
... and allow single quotes to be used "normally" in the .d files.

Makes the output curl.1 use better nroff.

Reported-by: Sergio Durigan Junior
Ref: #7928
Closes #7933

docs/cmdline-opts/cacert.d
docs/cmdline-opts/gen.pl
docs/cmdline-opts/pinnedpubkey.d
docs/cmdline-opts/proxy-pinnedpubkey.d
docs/cmdline-opts/retry-max-time.d

index a45762f9d517b45dc99f14af78076909cadc18d8..07612e4f29d6d6f7afc6f5c2ae76b628c1c25fe1 100644 (file)
@@ -16,7 +16,7 @@ set, and uses the given path as a path to a CA cert bundle. This option
 overrides that variable.
 
 The windows version of curl will automatically look for a CA certs file named
-\'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
+'curl-ca-bundle.crt', either in the same directory as curl.exe, or in the
 Current Working Directory, or in any folder along your PATH.
 
 If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
index 2a89d5e7627c77e42fdb08a27a24f19a079860ab..e891f67092d384521226a6156025be770fda0dbb 100755 (executable)
@@ -99,6 +99,8 @@ sub printdesc {
         # quote "bare" minuses in the output
         $d =~ s/( |\\fI|^)--/$1\\-\\-/g;
         $d =~ s/([ -]|\\fI|^)-/$1\\-/g;
+        # handle single quotes first on the line
+        $d =~ s/(\s*)\'/$1\\(aq/;
         print $d;
     }
 }
index 6cae97a7523fe9eb5e3d347e7f35c609964f32d3..7985cb2b301308a3708881c46ca6fb44299ec458 100644 (file)
@@ -10,7 +10,7 @@ Added: 7.39.0
 Tells curl to use the specified public key file (or hashes) to verify the
 peer. This can be a path to a file which contains a single public key in PEM
 or DER format, or any number of base64 encoded sha256 hashes preceded by
-\'sha256//\' and separated by \';\'
+'sha256//' and separated by ';'.
 
 When negotiating a TLS or SSL connection, the server sends a certificate
 indicating its identity. A public key is extracted from this certificate and
index bca3f872755e3fc8ac6922416bbeed59600f0f9c..17a57ff2af9d9dee060d0f54e990cca53fbcea76 100644 (file)
@@ -10,7 +10,7 @@ Added: 7.59.0
 Tells curl to use the specified public key file (or hashes) to verify the
 proxy. This can be a path to a file which contains a single public key in PEM
 or DER format, or any number of base64 encoded sha256 hashes preceded by
-\'sha256//\' and separated by \';\'
+'sha256//' and separated by ';'.
 
 When negotiating a TLS or SSL connection, the server sends a certificate
 indicating its identity. A public key is extracted from this certificate and
index acccff5d415035599e5096476930c3eb92e371ff..ae417a357cc8718655d32b8f63a7aa2c01e2f4e1 100644 (file)
@@ -9,7 +9,7 @@ The retry timer is reset before the first transfer attempt. Retries will be
 done as usual (see --retry) as long as the timer hasn't reached this given
 limit. Notice that if the timer hasn't reached the limit, the request will be
 made and while performing, it may take longer than this given time period. To
-limit a single request\'s maximum time, use --max-time.  Set this option to
+limit a single request's maximum time, use --max-time.  Set this option to
 zero to not timeout retries.
 
 If this option is used several times, the last one will be used.