From 0b4a102bcf5408896c237a2c35ca7663f8d84ff2 Mon Sep 17 00:00:00 2001 From: jturtle Date: Fri, 27 Oct 2023 05:06:41 +0000 Subject: [PATCH] Emit '\e' instead of '\\' I noticed that the rc shell's docs are messed up when using man-db, but fine with mandoc. '\e' is the standard way to emit a backslash, and the way that makes man-db not cry. --- src/main.c | 2 +- diff --git a/src/main.c b/src/main.c index ca7db55eac3898adb50fc54c5c7f470fb913eaae..0030fdcdd2fe5aff392a06717292525b12ea7851 100644 --- a/src/main.c +++ b/src/main.c @@ -208,7 +208,7 @@ ch = parser_getch(p); if (ch == UTF8_INVALID) { parser_fatal(p, "Unexpected EOF"); } else if (ch == '\\') { - fprintf(p->output, "\\\\"); + fprintf(p->output, "\\e"); } else { utf8_fputch(p->output, ch); } -- 2.48.1