From bca286d9dcf6b1b0dabd77260c0afaaaba154ea5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Aug 2023 10:37:18 +0200 Subject: [PATCH] variable.d: output the function names table style Also correct the url function name in the header Closes #11641 --- docs/cmdline-opts/page-header | 2 +- docs/cmdline-opts/variable.d | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/cmdline-opts/page-header b/docs/cmdline-opts/page-header index a21259a557..ca90b7219e 100644 --- a/docs/cmdline-opts/page-header +++ b/docs/cmdline-opts/page-header @@ -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. diff --git a/docs/cmdline-opts/variable.d b/docs/cmdline-opts/variable.d index fb638d5f51..77c02a5ba1 100644 --- a/docs/cmdline-opts/variable.d +++ b/docs/cmdline-opts/variable.d @@ -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 -- 2.47.3