[Ml-yokadi] renderTaskListRow is buggy

Sébastien Renard Sebastien.Renard
Jeu 19 Fév 07:43:48 CET 2009


Le mercredi 18 février 2009, Sébastien Renard a écrit :
> I see to keep this is either :
> - put color after padding formating
> - give fake size (removing extra ANSI colors code size)

Another quite simple solution would be to split row formating and string 
padding.

TaskRow format would only use %s and string should have been padded with extra 
white space before (an before coloration).

We could achieve that with a simple dict that give each field size and the 
ljust / rjust string method.


-- 
Sébastien


Plus d'informations sur la liste de diffusion Ml-yokadi