Skip to content

Commit

Permalink
Merge pull request #109722 from soltysh/fix_templater
Browse files Browse the repository at this point in the history
Do not wrap lines if we can't read term size
  • Loading branch information
k8s-ci-robot committed Apr 29, 2022
2 parents 5379417 + a1c9067 commit e7a2ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staging/src/k8s.io/kubectl/pkg/util/templates/templater.go
Expand Up @@ -223,7 +223,7 @@ func flagsUsages(f *flag.FlagSet) (string, error) {
flagBuf := new(bytes.Buffer)
wrapLimit, err := term.GetWordWrapperLimit()
if err != nil {
return "", err
wrapLimit = 0
}
printer := NewHelpFlagPrinter(flagBuf, wrapLimit)

Expand Down

0 comments on commit e7a2ce7

Please sign in to comment.