Skip to contentSkip to conversation

main - man-generator: remove ',' between some options

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=441b702362ad6a756551f059d4ca8d62713de6ac
Commit:        441b702362ad6a756551f059d4ca8d62713de6ac
Parent:        d86b5836442a357e6c01ee897b5d530e14494f73
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 11 14:28:51 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Apr 12 09:54:16 2021 +0200

man-generator: remove ',' between some options

It would be complicated to handle ',' alignment after hyphenation changes ATM, but these commas seems to be there rather unneeded so remove them and make the man output more clear.

---
 tools/command.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
tools/command.c +2 -8
index 7e0c2584d..0f31c5138 100644
@@ -2559,10 +2559,7 @@ static void _print_man_usage(char *lvmname, struct command *cmd)
 				continue;
 
 			if (sep) {
-				printf(",\n");
-				printf(".ad b\n");
-				printf(".br\n");
-				printf(".ad l\n");
+				printf("\n.br\n");
 				printf(" ");
 			}
 
@@ -2591,10 +2588,7 @@ static void _print_man_usage(char *lvmname, struct command *cmd)
 				continue;
 
 			if (sep) {
-				printf(",\n");
-				printf(".ad b\n");
-				printf(".br\n");
-				printf(".ad l\n");
+				printf("\n.br\n");
 				printf(" ");
 			} else
 				printf(".ad l\n");