pointtools

Simple point utilities to hold text presentations.
git clone git://r-36.net/pointtools
Log | Files | Refs | LICENSE

commit ed63e58c9395f38477c7db1795f507fb70f80aee
parent 36fb3f983b760f2f5725b2a0a51356a0782e0417
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:
md2point.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

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);