Fix the ipv6 header centering
This commit is contained in:
parent
3c01e310a5
commit
ef36126f06
@ -229,8 +229,9 @@ def route_pformat():
|
|||||||
r['recv-q'], r['send-q'],
|
r['recv-q'], r['send-q'],
|
||||||
r['local address'], r['foreign address'],
|
r['local address'], r['foreign address'],
|
||||||
r['state']])
|
r['state']])
|
||||||
header = util.center("Route IPv6 info", "+", max_len)
|
|
||||||
route_s = tbl_v6.get_string()
|
route_s = tbl_v6.get_string()
|
||||||
|
max_len = len(max(route_s.splitlines(), key=len))
|
||||||
|
header = util.center("Route IPv6 info", "+", max_len)
|
||||||
lines.extend([header, route_s])
|
lines.extend([header, route_s])
|
||||||
return "\n".join(lines)
|
return "\n".join(lines)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user