From f8d8b09a0a28d6e9953eeae64758e17e23c29bca Mon Sep 17 00:00:00 2001 From: Sam Ghods Date: Fri, 27 Mar 2015 16:50:29 -0700 Subject: [PATCH] Reduce some tab spacing in kubectl --- pkg/kubectl/cmd/cmd_test.go | 4 ++-- pkg/kubectl/resource_printer.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubectl/cmd/cmd_test.go b/pkg/kubectl/cmd/cmd_test.go index be62b94bc3adb..2ba27cb40a554 100644 --- a/pkg/kubectl/cmd/cmd_test.go +++ b/pkg/kubectl/cmd/cmd_test.go @@ -238,6 +238,6 @@ func ExamplePrintReplicationController() { fmt.Printf("Unexpected error: %v", err) } // Output: - // CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS - // foo foo someimage foo=bar 1 + // CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS + // foo foo someimage foo=bar 1 } diff --git a/pkg/kubectl/resource_printer.go b/pkg/kubectl/resource_printer.go index 606cf205fbaaa..cb8414e2cf885 100644 --- a/pkg/kubectl/resource_printer.go +++ b/pkg/kubectl/resource_printer.go @@ -550,7 +550,7 @@ func printResourceQuotaList(list *api.ResourceQuotaList, w io.Writer) error { // PrintObj prints the obj in a human-friendly format according to the type of the obj. func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error { - w := tabwriter.NewWriter(output, 20, 5, 3, ' ', 0) + w := tabwriter.NewWriter(output, 10, 4, 3, ' ', 0) defer w.Flush() t := reflect.TypeOf(obj) if handler := h.handlerMap[t]; handler != nil {