]> sourceware.org Git - lvm2.git/commitdiff
man-generator: remove ',' between some options
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 11 Apr 2021 12:28:51 +0000 (14:28 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 12 Apr 2021 07:54:16 +0000 (09:54 +0200)
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

index 7e0c2584ded49da63dab36b515b5fb41697265a3..0f31c51387874a01654ad49efe51b60c3f874452 100644 (file)
@@ -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");
This page took 0.047925 seconds and 5 git commands to generate.