From a4d8d58429ab299709b2ba630a54110c77022ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Sat, 12 Feb 2022 18:16:10 +0000 Subject: [PATCH 3/5] doc: rmdir: improve --help formatting * src/rmdir.c (usage): Move description to column 21, so that a --long-option on its own line without a trailing description, doesn't have an erroneous blank line inserted between the option and description. Also group descriptions with blank lines rather than indents, so that man pages don't have erroneous blank lines added within the description. Addresses https://bugs.gnu.org/53946 --- src/rmdir.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/rmdir.c b/src/rmdir.c index f13aa8e09..53311db8d 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -175,15 +175,21 @@ usage (int status) fputs (_("\ Remove the DIRECTORY(ies), if they are empty.\n\ \n\ +"), stdout); + fputs (_("\ --ignore-fail-on-non-empty\n\ - ignore each failure that is solely because a directory\n\ + ignore each failure that is solely because a directory\n\ is non-empty\n\ +\n\ "), stdout); fputs (_("\ - -p, --parents remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is\ + -p, --parents remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c'\ \n\ - similar to 'rmdir a/b/c a/b a'\n\ - -v, --verbose output a diagnostic for every directory processed\n\ + is similar to 'rmdir a/b/c a/b a'\n\ +\n\ +"), stdout); + fputs (_("\ + -v, --verbose output a diagnostic for every directory processed\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); -- 2.26.2