7 def __init__(self, header):
8 self.rows.append(header)
10 self.column_width.append(len(header))
12 def push_row (self, row):
16 if (self.column_width[num] < len(c)):
17 self.column_width[num] = len(c)
24 for rule in self.rows:
31 cur_line = cur_line + "%s "%r
32 if (self.column_width[num] > len(r)):
33 padding0 = ''.zfill(self.column_width[num] - len(r))
34 padding = padding0.replace('0',' ')
35 cur_line = cur_line + padding