fix a regression with printing bulletpoints - pointtools - Simple point utilities to hold text presentations. HTML git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit ed63e58c9395f38477c7db1795f507fb70f80aee DIR parent 36fb3f983b760f2f5725b2a0a51356a0782e0417 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 29 Apr 2020 18:57:17 +0200 fix a regression with printing bulletpoints regression input: "***test***" Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M md2point.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git 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);