Skip to contentSkip to conversation

main - man-generator: option description indented

PATCH Zdenek Kabelac 1 participant 1 message Apr 12, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e01ce8e2aeeb08d7f08d99976fa01635d7c3bfa5
Commit:        e01ce8e2aeeb08d7f08d99976fa01635d7c3bfa5
Parent:        441b702362ad6a756551f059d4ca8d62713de6ac
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 11 19:53:16 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Apr 12 09:54:16 2021 +0200

man-generator: option description indented

Left indention is needed only for options, but is actually unwanted for decription itself.

---
 tools/command.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/command.c +3 -3
index 0f31c5138..a81105b96 100644
@@ -3188,10 +3188,10 @@ static void _print_man_all_options_desc(struct command_name *cname)
 		if (opt_names[opt_enum].desc) {
 			printf("\n");
 			printf(".br\n");
+			printf(".ad b\n");
 			_print_man_option_desc(cname, opt_enum);
-		}
-
-		printf(".ad b\n");
+		} else
+			printf(".ad b\n");
 	}
 }