From 3b7a351a97f9d59fe945bb9a2ec638653f486f14 Mon Sep 17 00:00:00 2001 From: Marcos de Oliveira Date: Fri, 17 Mar 2023 11:03:13 -0300 Subject: [PATCH] DOC/MINOR: reformat configuration.txt's "quoting and escaping" table The table in section 2.2 ("Quoting and escaping") was formated in a way which is not recognized by haproxy-dconv, breaking it, and cutting off the entire section. This commit fix that by formatting the table in way which allows the converter to produce the correct HTML. Fixes cbonte/haproxy-dconv#35 --- doc/configuration.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 37a51e8d1..38f93c7a6 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -586,19 +586,28 @@ As a result, here is the matrix indicating how special characters can be entered in different contexts (unprintable characters are replaced with their name within angle brackets). Note that some characters that may only be represented escaped have no possible representation inside single quotes, -hence the '-' there: +hence its absence there: Character | Unquoted | Weakly quoted | Strongly quoted -----------+---------------+-----------------------------+----------------- | \, \x09 | "", "\", "\x09" | '' - | \n, \x0a | "\n", "\x0a" | - - | \r, \x0d | "\r", "\x0d" | - + -----------+---------------+-----------------------------+----------------- + | \n, \x0a | "\n", "\x0a" | + -----------+---------------+-----------------------------+----------------- + | \r, \x0d | "\r", "\x0d" | + -----------+---------------+-----------------------------+----------------- | \, \x20 | "", "\", "\x20" | '' + -----------+---------------+-----------------------------+----------------- " | \", \x22 | "\"", "\x22" | '"' + -----------+---------------+-----------------------------+----------------- # | \#, \x23 | "#", "\#", "\x23" | '#' + -----------+---------------+-----------------------------+----------------- $ | $, \$, \x24 | "\$", "\x24" | '$' - ' | \', \x27 | "'", "\'", "\x27" | - + -----------+---------------+-----------------------------+----------------- + ' | \', \x27 | "'", "\'", "\x27" | + -----------+---------------+-----------------------------+----------------- \ | \\, \x5c | "\\", "\x5c" | '\' + -----------+---------------+-----------------------------+----------------- Example: # those are all strictly equivalent: