fix a regression with printing bulletpoints

regression input: "***test***"

Signed-off-by: Christoph Lohmann <20h@r-36.net>
master
Hiltjo Posthuma 2020-04-29 18:57:17 +02:00 committed by Christoph Lohmann
parent 36fb3f983b
commit ed63e58c93
1 changed files with 5 additions and 2 deletions

View File

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