try not to go over 80 chars (attempt #3)

This commit is contained in:
Martin A. Brown 2016-03-04 21:44:50 -08:00
parent cec2730e9a
commit 428e577c0d
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ def summary(config, inv=None, **kwargs):
s = ''
if abbrev:
s = s + abbrev.pop(0)
while abbrev and len(s) < 40:
while abbrev:
if (len(s) + len(abbrev[0])) > 48:
break
s = s + ', ' + abbrev.pop(0)
if abbrev:
s = s + ', and %d more ...' % (len(abbrev))