From: Jim Meyering Date: Sat, 1 Mar 2003 21:20:57 +0000 (+0000) Subject: (print_header): Don't embed spaces in a separate `Type' X-Git-Tag: v4.5.9~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa1ae08fc54d81f24a38edef4ecf7d65665a6d91;p=thirdparty%2Fcoreutils.git (print_header): Don't embed spaces in a separate `Type' header string. Instead, put `Filesystem' and `Type' headers in the same string, so translators can use horizontal space as needed. --- diff --git a/src/df.c b/src/df.c index a546ab26f4..569a43fb49 100644 --- a/src/df.c +++ b/src/df.c @@ -148,16 +148,11 @@ static void print_header (void) { char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))]; - char const *type_header = _(" Type"); - printf (_("Filesystem ")); - - /* Print the `Type' header if required (--print-type, -T), - or an equivalent number of spaces. */ if (print_type) - fputs (type_header, stdout); + fputs (_("Filesystem Type"), stdout); else - printf ("%-*s", strlen (type_header), ""); + fputs (_("Filesystem "), stdout); if (inode_format) printf (_(" Inodes IUsed IFree IUse%%"));