summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjturtle <jturtl@pm.me>2023-10-27 05:06:41 +0000
committerDrew DeVault <sir@cmpwn.com>2023-10-30 09:31:37 +0100
commit0b4a102bcf5408896c237a2c35ca7663f8d84ff2 (patch)
treee786bfa354e47a31af97f2bd6dfd4c762fce3407
parentafeda241f3f9b2c27e461f32d9c2a704ab82ef61 (diff)
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.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ca7db55..0030fdc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -208,7 +208,7 @@ static void parse_text(struct parser *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);
}