From a6e051bab38a67eebc4f6d834df7cab7ac0b8d13 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Tue, 14 Jul 2015 20:33:39 +0300 Subject: [PATCH] shorten output if long lines --- nando | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nando b/nando index fa91186..a2cc3b5 100755 --- a/nando +++ b/nando @@ -60,7 +60,7 @@ def print_table(data): cols=row.split("|",4) if len(cols)!=4: continue - print(("{0:<"+lengths[0]+"} | {1:<"+lengths[1]+"} | {2:>"+lengths[2]+"} | {3:<"+lengths[3]+"}").format(*cols)) + print(("{0:<"+lengths[0]+"} | {1:<"+lengths[1]+"} | {2:>"+lengths[2]+"} | {3}").format(*cols)) def query_ip(sock,opts): sock.sendto("list", (opts.HOST, opts.PORT))