2023-07-16 20:21:00 -05:00

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))