From eaa7716fae98be329db877bf137ad98b4335760f Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Fri, 26 Mar 2010 01:13:29 +0100 Subject: [PATCH] blockdev: reduce usage text width 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 --- disk-utils/blockdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index 288c102d..eeaf2f5c 100644 --- a/disk-utils/blockdev.c +++ b/disk-utils/blockdev.c @@ -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); -- 2.39.5