Forgot to attach the patch :D Em sex., 17 de mar. de 2023 às 14:55, Marcos Oliveira < markinholive...@gmail.com> escreveu:
> Hello, > > I noticed that HAProxy section 2.2 ( > https://docs.haproxy.org/2.2/configuration.html#2.2) was cut off at the > start of a table, so I went ahead and dug haproxy-dconv and found out that > the section's table was formatted in a way which is not recognized by > dconv. This patch fixes that. > Also, TimWolla had already found about that a while ago: > https://github.com/cbonte/haproxy-dconv/issues/35 > > -- > Att > > Marcos de Oliveira > -- Att Marcos de Oliveira
From dd61323f0297bd2ac34186ffa4a2cddc6db1fc20 Mon Sep 17 00:00:00 2001 From: Marcos de Oliveira <markinholive...@gmail.com> 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 2d5768980..6968f4de2 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 -----------+---------------+-----------------------------+----------------- <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: -- 2.40.0