12 lines
308 B
Python
12 lines
308 B
Python
# text.py
|
|
|
|
from ..formatter import TableFormatter
|
|
|
|
class TextTableFormatter(TableFormatter):
|
|
def headings(self, headers):
|
|
print(' '.join('%10s' % h for h in headers))
|
|
print(('-'*10 + ' ')*len(headers))
|
|
|
|
def row(self, rowdata):
|
|
print(' '.join('%10s' % d for d in rowdata))
|