~sircmpwn/public-inbox

scdoc: fix formatting of escaped backticks v1 PROPOSED

Max Schillinger: 1
 fix formatting of escaped backticks

 1 files changed, 2 insertions(+), 0 deletions(-)
#1082086 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/46026/mbox | git am -3
Learn more about email & git

[PATCH scdoc] fix formatting of escaped backticks Export this patch

Currently, an escaped backtick (\`) is translated to \\` which gets
rendered as "Left Single Quotation Mark" (‘) (for a UTF-8 locale).

This commit translates \` to \` which results in an actual backtick in
the rendered man page.
---
Example: man rc, section ARGUMENT EXPANSION.
 src/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main.c b/src/main.c
index ca7db55..cd2a968 100644
--- a/src/main.c
+++ b/src/main.c
@@ -209,6 +209,8 @@ static void parse_text(struct parser *p) {
				parser_fatal(p, "Unexpected EOF");
			} else if (ch == '\\') {
				fprintf(p->output, "\\\\");
			} else if (ch == '`') {
				fprintf(p->output, "\\`");
			} else {
				utf8_fputch(p->output, ch);
			}
-- 
2.42.0
scdoc/patches/.build.yml: SUCCESS in 19s

[fix formatting of escaped backticks][0] from [Max Schillinger][1]

[0]: https://lists.sr.ht/~sircmpwn/public-inbox/patches/46026
[1]: mailto:max@mxsr.de

✓ #1082086 SUCCESS scdoc/patches/.build.yml https://builds.sr.ht/~sircmpwn/job/1082086
Does not apply, rebase?