Skip to content

Commit

Permalink
Added RowFormat.addColumn convenience function
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Nov 4, 2014
1 parent 92426b9 commit 8c79e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def __init__(self, prefix=None):
self.prefix = prefix or ""


def addColumn(self, *args, **kwargs):
self.append(ColumnFormat(*args, **kwargs))


def append(self, column, after=None):
columns = self.columns
if after:
Expand Down

0 comments on commit 8c79e15

Please sign in to comment.