~sircmpwn/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH scdoc] fix formatting of escaped backticks

Details
Message ID
<20231024204718.97555-2-max@mxsr.de>
DKIM signature
missing
Download raw message
Patch: +2 -0
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] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CWGYR2LAWKOJ.2HNG4M9PRNITE@cirno2>
In-Reply-To
<20231024204718.97555-2-max@mxsr.de> (view parent)
DKIM signature
missing
Download raw message
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]: max@mxsr.de

✓ #1082086 SUCCESS scdoc/patches/.build.yml https://builds.sr.ht/~sircmpwn/job/1082086
Details
Message ID
<CWLNRA0OGPNG.3EMOIJGEE4VSF@taiga>
In-Reply-To
<20231024204718.97555-2-max@mxsr.de> (view parent)
DKIM signature
missing
Download raw message
Does not apply, rebase?
Reply to thread Export thread (mbox)