Skip to content

Commit

Permalink
Merge pull request kubernetes#109725 from soltysh/automated-cherry-pi…
Browse files Browse the repository at this point in the history
…ck-of-#109722-upstream-release-1.24

Automated cherry pick of kubernetes#109722: Do not wrap lines if we can't read term size
  • Loading branch information
k8s-ci-robot authored May 20, 2022
2 parents 93ae0ab + e27cb24 commit ebe54dc
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
Original file line number Diff line number Diff line change
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 ebe54dc

Please sign in to comment.