From 8b12587f8c475e6a475f659fdc58ce93fcd66495 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 22 Jun 2018 16:28:11 +0100 Subject: [PATCH] teach docs about true and false --- doc/makedoc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/makedoc.c b/doc/makedoc.c index eae53994fb6..f8e5ae9eab7 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);