From: Richard Russon Date: Fri, 22 Jun 2018 15:28:11 +0000 (+0100) Subject: teach docs about true and false X-Git-Tag: neomutt-20180716~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b12587f8c475e6a475f659fdc58ce93fcd66495;p=neomutt teach docs about true and false --- diff --git a/doc/makedoc.c b/doc/makedoc.c index eae53994f..f8e5ae9ea 100644 --- a/doc/makedoc.c +++ b/doc/makedoc.c @@ -1013,7 +1013,11 @@ static void pretty_default(char *t, size_t l, const char *s, int type) } case DT_BOOL: { - if (atoi(s)) + if (strcasecmp(s, "true") == 0) + strncpy(t, "yes", l); + else if (strcasecmp(s, "false") == 0) + strncpy(t, "no", l); + else if (atoi(s)) strncpy(t, "yes", l); else strncpy(t, "no", l);