Skip to content

Commit

Permalink
Merge branch 'master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Palollo authored Jul 2, 2024
2 parents bee1c20 + c15c60e commit 4bb76f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec3
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def dump_table(l, order, align={}):
widths = dict([ (f, max([ len(str(d[f])) for d in l ] + [len(f)])+2) for f in order ])
o = [ "".join([ "{0: ^{width}}".format(f, width=widths[f]) for f in order ]) ]
o.append("-"*sum(widths.values()))
o.extend([ "".join([ "{0: {a}{width}}".format(d[f], a=align.get(f, "^"), width=widths[f]) for f in order ])
o.extend([ "".join([ "{0: {a}{width}}".format(str(d[f]), a=align.get(f, "^"), width=widths[f]) for f in order ])
for d in l ])
return "\n".join(o)

Expand Down

0 comments on commit 4bb76f8

Please sign in to comment.