Revision 9fe72672 lib/cli.py
b/lib/cli.py | ||
---|---|---|
1575 | 1575 |
for idx, name in enumerate(fields): |
1576 | 1576 |
hdr = headers[name] |
1577 | 1577 |
if separator is None: |
1578 |
mlens[idx] = max(mlens[idx], len(hdr)) |
|
1578 |
if idx == len(fields) - 1 and not numfields.Matches(name): |
|
1579 |
mlens[idx] = 0 |
|
1580 |
else: |
|
1581 |
mlens[idx] = max(mlens[idx], len(hdr)) |
|
1579 | 1582 |
args.append(mlens[idx]) |
1580 | 1583 |
args.append(hdr) |
1581 | 1584 |
result.append(format % tuple(args)) |
Also available in: Unified diff