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