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: Eric Blake
Subject: Re: [PATCH] pr: ensure the page header line is of the required format
Date: Wed, 6 Jan 2010 21:18:58 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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.

-- 
Eric Blake







reply via email to

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