From ed63e58c9395f38477c7db1795f507fb70f80aee Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 29 Apr 2020 18:57:17 +0200 Subject: [PATCH] fix a regression with printing bulletpoints regression input: "***test***" Signed-off-by: Christoph Lohmann <20h@r-36.net> --- md2point.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/md2point.c b/md2point.c index 9d28374..14c5f0c 100644 --- a/md2point.c +++ b/md2point.c @@ -77,10 +77,13 @@ fprintesc(FILE *fp, char *s, ssize_t len) fprintf(fp, " "); break; case '*': - if (!intext) { + if (intext) { + fputc(s[i], fp); + } else { fputc('o', fp); - break; + intext = 1; } + break; default: intext = 1; fputc(s[i], fp);