From 6d75376d7f0b2e789e0994ffd08a5ca0b7479c68 Mon Sep 17 00:00:00 2001 From: lauralani Date: Fri, 24 Mar 2023 18:09:09 +0100 Subject: [PATCH] fix display width for subnet list --- cmd/subnet-list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/subnet-list.go b/cmd/subnet-list.go index b68d852..b47e5e3 100644 --- a/cmd/subnet-list.go +++ b/cmd/subnet-list.go @@ -56,10 +56,10 @@ var subnetlistCmd = &cobra.Command{ if freeip > 1000 { - fmt.Printf("%-15s %-4s %-25s >1000\n", subnet.Subnet, subnet.Vlan, subnet.Name) + fmt.Printf("%-18s %-4s %-25s >1000\n", subnet.Subnet, subnet.Vlan, subnet.Name) } else { //fmt.Printf("| %-20s | %-20s |\n", "vegetables", "fruits") - fmt.Printf("%-15s %-4s %-25s %v\n", subnet.Subnet, subnet.Vlan, subnet.Name, freeip) + fmt.Printf("%-18s %-4s %-25s %v\n", subnet.Subnet, subnet.Vlan, subnet.Name, freeip) } } else { fmt.Printf("%v:\t%v\t(vl: %v)\n", subnet.Subnet, subnet.Name, subnet.Vlan)