]> sourceware.org Git - lvm2.git/commitdiff
man-generator: option description indented
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 11 Apr 2021 17:53:16 +0000 (19:53 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 12 Apr 2021 07:54:16 +0000 (09:54 +0200)
Left indention is needed only for options, but is actually
unwanted for decription itself.

tools/command.c

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