]> err.no Git - util-linux/commitdiff
blockdev: reduce usage text width
authorFrancesco Cosoleto <cosoleto@gmail.com>
Fri, 26 Mar 2010 00:13:29 +0000 (01:13 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Mar 2010 15:27:09 +0000 (17:27 +0200)
Use spaces in usage text instead of tabs and reduce the distance between
option names and descriptions.

This helps to minimize problems due to limited number of columns and
translated texts which take up more space than English.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
disk-utils/blockdev.c

index 288c102dfd1b2c96534fa22e50482c7336fbc38c..eeaf2f5c674c4ea3b9d6026a6da8ac3356861573 100644 (file)
@@ -183,15 +183,15 @@ usage(void) {
        fputc('\n', stderr);
 
        fprintf(stderr, _("Available commands:\n"));
-       fprintf(stderr, "\t%-30s %s\n", "--getsz",
+       fprintf(stderr, "  %-25s %s\n", "--getsz",
                        _("get size in 512-byte sectors"));
        for (i = 0; i < ARRAY_SIZE(bdcms); i++) {
                if (bdcms[i].argname)
-                       fprintf(stderr, "\t%s %-*s %s\n", bdcms[i].name,
-                                       (int) (29 - strlen(bdcms[i].name)),
+                       fprintf(stderr, "  %s %-*s %s\n", bdcms[i].name,
+                                       (int) (24 - strlen(bdcms[i].name)),
                                        bdcms[i].argname, _(bdcms[i].help));
                else
-                       fprintf(stderr, "\t%-30s %s\n", bdcms[i].name,
+                       fprintf(stderr, "  %-25s %s\n", bdcms[i].name,
                                        _(bdcms[i].help));
        }
        fputc('\n', stderr);