]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
variable.d: output the function names table style
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Aug 2023 08:37:18 +0000 (10:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 9 Aug 2023 08:44:10 +0000 (10:44 +0200)
Also correct the url function name in the header

Closes #11641

docs/cmdline-opts/page-header
docs/cmdline-opts/variable.d

index a21259a557d62a874cd73d1e28d32b8ef6cca513..ca90b7219e6243b78ba4f93d4f5fc37cfa73f894 100644 (file)
@@ -132,7 +132,7 @@ as POST data:
 
   --variable %HOME
   --expand-variable fix@{{HOME}}/.secret
-  --expand-data "{{fix:trim:urlencode}}"
+  --expand-data "{{fix:trim:url}}"
   https://example.com/
 
 Command line variables and expansions were added in in 8.3.0.
index fb638d5f5169fb87eadd3183365f35cebb130819..77c02a5ba1a0eab01cf4c346bbb63eb2a6ed13b8 100644 (file)
@@ -38,13 +38,20 @@ comma-separated list that is evaluated in a left-to-right order. Variable
 content holding null bytes that are not encoded when expanded, will cause
 error.
 
-These are functions that can help you get the value inserted more
-conveniently.
+Available functions:
+.RS
+.TP 15
+**trim**
+removes all leading and trailing white space.
+.TP
+**json**
+outputs the content using JSON string quoting rules.
+.TP
+**url**
+shows the content URL (percent) encoded.
+.TP
+**b64**
+expands the variable base64 encoded
+.RE
+.IP
 
-"trim" removes all leading and trailing white space.
-
-"json" outputs the content using JSON string quoting rules.
-
-"url" shows the content URL (percent) encoded.
-
-"b64" expands the variable base64 encoded