Skip to content

Commit

Permalink
justifying indeces to 3-char width to clean up sub-1000 printing
Browse files Browse the repository at this point in the history
  • Loading branch information
gmn committed Jul 1, 2016
1 parent 33c7785 commit 2d128a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todo
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class CItem:
return s

def shortString(self):
return '{}[{}] {}'.format('F=' if not self.active else '', self._id, self.title)
return '{}[{:3}] {}'.format('F=' if not self.active else '', self._id, self.title)

def __str__(self):
return self.shortString()
Expand Down Expand Up @@ -316,7 +316,7 @@ def print_item( i, item, longprint, Lists ):
if longprint:
p(item.toString(index='{}:'.format(i), lists=Lists.data))
else:
p('{}: {}'.format(i, item))
p('{:3}: {}'.format(i, item))

def print_list( _list, backwards, longprint, Lists ):
if type(_list) is type({}):
Expand Down

0 comments on commit 2d128a7

Please sign in to comment.