bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] pr: ensure the page header line is of the required format


From: Jim Meyering
Subject: Re: [PATCH] pr: ensure the page header line is of the required format
Date: Wed, 06 Jan 2010 22:56:57 +0100

Eric Blake wrote:
> Eric Blake <ebb9 <at> byu.net> writes:
>
>>    printf ("\n\n%*.*s%s%*s%s%*s%s\n\n\n",
>>            chars_per_margin, chars_per_margin, " ",
>>            date_text, lhs_spaces, " ",
>>            file_text, rhs_spaces, " ", page_text);
>
> For that matter, why not:
>
> printf ("\n\n%*s%s%*s%s%*s%s\n\n\n",
>         chars_per_margin, "",
>         date_text, lhs_spaces, " ",
>         file_text, rhs_spaces, " ", page_text);
>
> for less work in the printf call.

:-)
Yes, that's even better.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]