Hey Peter!  Thanks for taking the time to put in a proper fix for that!

On 4/15/17 6:01 PM, Peter Cowburn wrote:
> Commit:    1c25572c7b44c525760a822f810b873a0af1d9e7
> Author:    Peter Cowburn <[email protected]>         Sat, 15 Apr 2017 23:01:08 
> +0100
> Parents:   2f2d99f80c770fd6d60b650bffe5a81acaa16b8f
> Branches:  master
>
> Link:       
> http://git.php.net/?p=web/php.git;a=commitdiff;h=1c25572c7b44c525760a822f810b873a0af1d9e7
>
> Log:
> pad category name in createNewsEmpty prompt
>
> Changes the prompt from this:
>
> Categories:
>       0: frontpage     [PHP.net frontpage news]
>       1: releases      [New PHP release]
>       2: conferences   [Conference announcement]
>       3: cfp   [Call for Papers]
>
> To this:
>
> Categories:
>       0: frontpage     [PHP.net frontpage news]
>       1: releases      [New PHP release]
>       2: conferences   [Conference announcement]
>       3: cfp           [Call for Papers]
>
> Changed paths:
>   M  bin/createNewsEntry
>
>
> Diff:
> diff --git a/bin/createNewsEntry b/bin/createNewsEntry
> index 4489c2d..b03a7fc 100755
> --- a/bin/createNewsEntry
> +++ b/bin/createNewsEntry
> @@ -56,7 +56,7 @@ $confs = array(2, 3);
>  do {
>       fwrite(STDOUT, "Categories:\n");
>       foreach($categories as $n => $category) {
> -             fprintf(STDOUT, "\t%d: %s\t [%s]\n", $n, key($category), 
> current($category));
> +             fprintf(STDOUT, "\t%d: %-11s\t [%s]\n", $n, key($category), 
> current($category));
>       }
>       fwrite(STDOUT, "Please select appropriate categories, seperated with 
> space: ");
>
>

-- 
|   Eli White   |   http://eliw.com/   |   Twitter: EliW   |

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to