From: Aurelien DARRAGON Date: Thu, 23 Mar 2023 10:54:44 +0000 (+0100) Subject: DOC: config: set-var() dconv rendering issues X-Git-Tag: v2.8-dev6~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fedbc17a5e40bfa6b8a6ed1417d22410f925eddb;p=thirdparty%2Fhaproxy.git DOC: config: set-var() dconv rendering issues Since optional argument support was added to set-var() and friends in 2.6 with 164726c ("DOC: vars: Add documentation about the set-var conditions"), dconv is having a hard time rendering related keywords. Everywhere `[, ...]` was inserted, html formatting is now broken. Removing the space between and '...' allows dconv to properly parse the token thus restores proper formatting without changing the meaning. This was discovered when discussing about var() sample fetch doc issues in GH #2087 This patch should be backported up to 2.6 --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 0c22b8265f..d3ebe9dafb 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -5915,8 +5915,8 @@ http-after-response [ { if | unless } ] - set-log-level - set-map() - set-status [reason ] - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - strict-mode { on | off } - unset-var() @@ -6052,8 +6052,8 @@ http-after-response set-status [reason ] between 100 and 999. Please refer to "http-response set-status" for a complete description. -http-after-response set-var([, ...]) [ { if | unless } ] -http-after-response set-var-fmt([, ...]) [ { if | unless } ] +http-after-response set-var([,...]) [ { if | unless } ] +http-after-response set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. Please refer to "http-request set-var" and "http-request set-var-fmt" @@ -6491,8 +6491,8 @@ http-check send-state "http-check send". -http-check set-var([, ...]) -http-check set-var-fmt([, ...]) +http-check set-var([,...]) +http-check set-var-fmt([,...]) This operation sets the content of a variable. The variable is declared inline. May be used in sections: defaults | frontend | listen | backend yes | no | yes | yes @@ -6685,8 +6685,8 @@ http-request [options...] [ { if | unless } ] - set-timeout { server | tunnel } { | } - set-tos - set-uri - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - send-spoe-group - silent-drop [ rst-ttl ] - strict-mode { on | off } @@ -7640,8 +7640,8 @@ http-request set-uri [ { if | unless } ] and/or the query string should be set separately. See also "http-request set-path" and "http-request set-query". -http-request set-var([, ...]) [ { if | unless } ] -http-request set-var-fmt([, ...]) [ { if | unless } ] +http-request set-var([,...]) [ { if | unless } ] +http-request set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. @@ -7881,8 +7881,8 @@ http-response [ { if | unless } ] - set-nice - set-status [reason ] - set-tos - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - silent-drop [ rst-ttl ] - strict-mode { on | off } - track-sc0 [table ] @@ -8131,8 +8131,8 @@ http-response set-tos [ { if | unless } ] to the value passed in on platforms which support this. Please refer to "http-request set-tos" for a complete description. -http-response set-var([, ...]) [ { if | unless } ] -http-response set-var-fmt([, ...]) [ { if | unless } ] +http-response set-var([,...]) [ { if | unless } ] +http-response set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. Please refer to "http-request set-var" and "http-request set-var-fmt" @@ -12848,8 +12848,8 @@ tcp-check send-binary-lf [comment ] "tcp-check send", tune.bufsize -tcp-check set-var([, ...]) -tcp-check set-var-fmt([, ...]) +tcp-check set-var([,...]) +tcp-check set-var-fmt([,...]) This operation sets the content of a variable. The variable is declared inline. May be used in sections: defaults | frontend | listen | backend yes | no | yes | yes @@ -12942,8 +12942,8 @@ tcp-request connection [ { if | unless } ] - set-src - set-src-port - set-tos - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - silent-drop [ rst-ttl ] - track-sc0 [table
] - track-sc1 [table
] @@ -13080,8 +13080,8 @@ tcp-request connection set-tos [ { if | unless } ] to the value passed in on platforms which support this. Please refer to "http-request set-tos" for a complete description. -tcp-request connection set-var([, ...]) [ { if | unless } ] -tcp-request connection set-var-fmt([, ...]) [ { if | unless } ] +tcp-request connection set-var([,...]) [ { if | unless } ] +tcp-request connection set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. "tcp-request connection" can set variables in the "proc" and "sess" @@ -13167,8 +13167,8 @@ tcp-request content [{if | unless} ] - set-src - set-src-port - set-tos - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - silent-drop [ rst-ttl ] - switch-mode http [ proto ] - track-sc0 [table
] @@ -13411,8 +13411,8 @@ tcp-request content set-tos [ { if | unless } ] to the value passed in on platforms which support this. Please refer to "http-request set-tos" for a complete description. -tcp-request content set-var([, ...]) [ { if | unless } ] -tcp-request content set-var-fmt([, ...]) [ { if | unless } ] +tcp-request content set-var([,...]) [ { if | unless } ] +tcp-request content set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. Please refer to "http-request set-var" and "http-request set-var-fmt" @@ -13565,8 +13565,8 @@ tcp-request session [{if | unless} ] - set-src - set-src-port - set-tos - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - silent-drop [ rst-ttl ] - track-sc0 [table
] - track-sc1 [table
] @@ -13677,8 +13677,8 @@ tcp-request session set-tos [ { if | unless } ] to the value passed in on platforms which support this. Please refer to "http-request set-tos" for a complete description. -tcp-request session set-var([, ...]) [ { if | unless } ] -tcp-request session set-var-fmt([, ...]) [ { if | unless } ] +tcp-request session set-var([,...]) [ { if | unless } ] +tcp-request session set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. Please refer to "http-request set-var" and "http-request set-var-fmt" @@ -13745,8 +13745,8 @@ tcp-response content [{if | unless} ] - set-mark - set-nice - set-tos - - set-var([, ...]) - - set-var-fmt([, ...]) + - set-var([,...]) + - set-var-fmt([,...]) - silent-drop [ rst-ttl ] - unset-var() @@ -13855,8 +13855,8 @@ tcp-response content set-tos [ { if | unless } ] to the value passed in on platforms which support this. Please refer to "http-request set-tos" for a complete description. -tcp-response content set-var([, ...]) [ { if | unless } ] -tcp-response content set-var-fmt([, ...]) [ { if | unless } ] +tcp-response content set-var([,...]) [ { if | unless } ] +tcp-response content set-var-fmt([,...]) [ { if | unless } ] This is used to set the contents of a variable. The variable is declared inline. Please refer to "http-request set-var" and "http-request set-var-fmt" @@ -18380,7 +18380,7 @@ secure_memcmp() # value, without leaking the contents using a timing attack. acl token_given str(my_secret_token),secure_memcmp(txn.token) -set-var([, ...]) +set-var([,...]) Sets a variable with the input content and returns the content on the output as-is if all of the specified conditions are true (see below for a list of possible conditions). The variable keeps the value and the associated input