From 14950175462bb6cbf08ba549ff14e0741a3eeada Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 7 Aug 2013 14:13:15 +0200 Subject: [PATCH] truncate label in formatter 'account_list' --- weboob/applications/boobank/boobank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index d2396e40..39d2fcc2 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -187,7 +187,7 @@ class AccountListFormatter(IFormatter): balance = obj.balance or Decimal('0') coming = obj.coming or Decimal('0') result = u'%s %s %s %s' % (id, - self.colored('%-25s' % obj.label, 'yellow'), + self.colored('%-25s' % obj.label[:25], 'yellow'), self.colored('%9.2f' % obj.balance, 'green' if balance >= 0 else 'red') if not empty(obj.balance) else ' ' * 9, self.colored('%9.2f' % obj.coming, 'green' if coming >= 0 else 'red') if not empty(obj.coming) else '')