]> git.neil.brown.name Git - edlib.git/commitdiff
markup: always convert control characters.
authorNeilBrown <neil@brown.name>
Wed, 21 Jun 2023 04:35:50 +0000 (14:35 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
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 <neil@brown.name>
lib-markup.c

index 952ef5657585c426973af94f09f25fbb0a511488..3c27c84fa7a024139c58e88d7d21f1dc2a324d73 100644 (file)
@@ -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, "<fg:red>^");
                        buf_append(&b, '@' + ch);
                        buf_concat(&b, "</>");