]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC/MINOR: reformat configuration.txt's "quoting and escaping" table
authorMarcos de Oliveira <markinholiveira@gmail.com>
Fri, 17 Mar 2023 14:03:13 +0000 (11:03 -0300)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Mar 2023 05:20:03 +0000 (07:20 +0200)
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

index 37a51e8d168f28bf04e3e115fda5a071d5e42c32..38f93c7a63a64ce753807ab5c5094b82d528153f 100644 (file)
@@ -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
   -----------+---------------+-----------------------------+-----------------
     <TAB>    |  \<TAB>, \x09 |  "<TAB>", "\<TAB>", "\x09"  |  '<TAB>'
-    <LF>     |  \n, \x0a     |  "\n", "\x0a"               |   -
-    <CR>     |  \r, \x0d     |  "\r", "\x0d"               |   -
+  -----------+---------------+-----------------------------+-----------------
+    <LF>     |  \n, \x0a     |  "\n", "\x0a"               |
+  -----------+---------------+-----------------------------+-----------------
+    <CR>     |  \r, \x0d     |  "\r", "\x0d"               |
+  -----------+---------------+-----------------------------+-----------------
     <SPC>    |  \<SPC>, \x20 |  "<SPC>", "\<SPC>", "\x20"  |  '<SPC>'
+  -----------+---------------+-----------------------------+-----------------
     "        |  \", \x22     |  "\"", "\x22"               |  '"'
+  -----------+---------------+-----------------------------+-----------------
     #        |  \#, \x23     |  "#", "\#", "\x23"          |  '#'
+  -----------+---------------+-----------------------------+-----------------
     $        |  $, \$, \x24  |  "\$", "\x24"               |  '$'
-    '        |  \', \x27     |  "'", "\'", "\x27"          |   -
+  -----------+---------------+-----------------------------+-----------------
+    '        |  \', \x27     |  "'", "\'", "\x27"          |
+  -----------+---------------+-----------------------------+-----------------
     \        |  \\, \x5c     |  "\\", "\x5c"               |  '\'
+  -----------+---------------+-----------------------------+-----------------
 
   Example:
       # those are all strictly equivalent: