mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(print_header): Rather than using a hard-coded literal
string of spaces matching the length of the English `...Type' header, output the right number of spaces to match the selected translation. Reported by Yann Dirson and Jean Charles Delepine as Debian bug 131113.
This commit is contained in:
1 parent
efb6756c2e
commit
e2cd6ba3df
1 file changed
+5
-2
@@ -148,13 +148,16 @@ 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)
|
||||
printf (_(" Type"));
|
||||
fputs (type_header, stdout);
|
||||
else
|
||||
printf (" ");
|
||||
printf ("%-*s", strlen (type_header), "");
|
||||
|
||||
if (inode_format)
|
||||
printf (_(" Inodes IUsed IFree IUse%%"));
|
||||
|
||||
Reference in new issue
Block a user