« Previous | Next » 

Revision 5a5a1f65


Added by Stratos Psomadakis almost 11 years ago

Fix print alignment for snf-mange cmds

pprint_table misbehaved when handling unicode 'strings', breaking the
alignment of the output of several snf-manage cmds, and raising a
unicode encode exception, when printing non 'ascii' unicode strings.

Calculate correctly the max column width by applying len() directly to
the unicode objects, and use the unicode rjust for the output
formatting, and use uenc to encode the output correctly, before


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences