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:
29 cur_line = cur_line + "%s "%r
30 if (self.column_width[num] > len(r)):
31 padding0 = ''.zfill(self.column_width[num] - len(r))
32 padding = padding0.replace('0',' ')
33 cur_line = cur_line + padding