From: Nick Bowler Date: Thu, 13 Apr 2023 01:11:38 +0000 (-0400) Subject: help_print_desc: Ensure newline is printed for empty description. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/54f9ce81ef444d6e869f7b32066928ed82c17dff?ds=inline;hp=54f9ce81ef444d6e869f7b32066928ed82c17dff help_print_desc: Ensure newline is printed for empty description. Callers expect help_print_desc to always end on a new line, so that the next option can be printed at the start of a new line. Currently, however, this function does nothing for an empty description string, leading to incorrect output unless the option name was long enough that help_print_optstring took care of it. Add a special case to fix that up, and a new test case. ---