1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 10:16:53 +02:00

(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.
This commit is contained in:
Jim Meyering
2003-03-01 21:20:57 +00:00
parent 5f80e10645
commit aa1ae08fc5
+2 -7
View File
@@ -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%%"));