X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/43e5c4ebc6411fcc47a637ddeb22ac02bb5561ee..54f9ce81ef444d6e869f7b32066928ed82c17dff:/src/help.c diff --git a/src/help.c b/src/help.c index 43bb266..f96025f 100644 --- a/src/help.c +++ b/src/help.c @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2022 Nick Bowler + * Copyright © 2021-2023 Nick Bowler * * Helper functions for formatting --help program output. * @@ -188,6 +188,9 @@ void help_print_desc(const struct option *opt, const char *s, int i, int w) if (opt) s = pgettext_expr(opt->name, s); + if (i && s[0] == '\0') + putchar('\n'); + for (; *s; w = 0) { const char *nl = strchr(s, '\n'); int n = (nl ? nl-s : -1);