From: NeilBrown Date: Wed, 21 Jun 2023 04:35:50 +0000 (+1000) Subject: markup: always convert control characters. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=0eb606f49a0f3f96ca8b3fc16c5e2714d39cea18;p=edlib.git markup: always convert control characters. I don't know why this is_true_eol test is here, but is is NEVER set at this point, so it breaks control characters - leaving them to lib-renderline to handle, which I don't want. Signed-off-by: NeilBrown --- diff --git a/lib-markup.c b/lib-markup.c index 952ef565..3c27c84f 100644 --- a/lib-markup.c +++ b/lib-markup.c @@ -427,7 +427,7 @@ DEF_CMD(render_line) } if (ch == '\r' && noret) { /* do nothing */ - } else if (ch < ' ' && ch != '\t' && is_true_eol) { + } else if (ch < ' ' && ch != '\t') { buf_concat(&b, "^"); buf_append(&b, '@' + ch); buf_concat(&b, "");