equal
deleted
inserted
replaced
441 widths = [max([encoding.colwidth(e) for e in c]) for c in zip(*table)] |
441 widths = [max([encoding.colwidth(e) for e in c]) for c in zip(*table)] |
442 text = '' |
442 text = '' |
443 span = sum(widths) + len(widths) - 1 |
443 span = sum(widths) + len(widths) - 1 |
444 indent = ' ' * block['indent'] |
444 indent = ' ' * block['indent'] |
445 hang = ' ' * (len(indent) + span - widths[-1]) |
445 hang = ' ' * (len(indent) + span - widths[-1]) |
446 f = ' '.join('%%-%ds' % n for n in widths) |
|
447 |
446 |
448 for row in table: |
447 for row in table: |
449 l = [] |
448 l = [] |
450 for w, v in zip(widths, row): |
449 for w, v in zip(widths, row): |
451 pad = ' ' * (w - encoding.colwidth(v)) |
450 pad = ' ' * (w - encoding.colwidth(v)) |