« Previous | Next » 

Revision 5a5a1f65

ID5a5a1f65494419737a3f2fefb9c36a69996041ec

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
printing.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences