diff options
author | jturtle <jturtl@pm.me> | 2023-10-27 05:06:41 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2023-10-30 09:31:37 +0100 |
commit | 0b4a102bcf5408896c237a2c35ca7663f8d84ff2 (patch) | |
tree | e786bfa354e47a31af97f2bd6dfd4c762fce3407 | |
parent | afeda241f3f9b2c27e461f32d9c2a704ab82ef61 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |