diff --git a/src/go/rpk/pkg/adminapi/admin.go b/src/go/rpk/pkg/adminapi/admin.go index b75d1f5309f01..2c1e90ce25b26 100644 --- a/src/go/rpk/pkg/adminapi/admin.go +++ b/src/go/rpk/pkg/adminapi/admin.go @@ -720,7 +720,7 @@ func licenseFeatureChecks(ctx context.Context, fs afero.Fs, cl *AdminAPI, p *con } } } - if ws, err := mTerm.GetWinsize(0); err == nil { + if ws, err := mTerm.GetWinsize(0); err == nil && msg != "" { // text.Wrap removes the newline from the text. We add it back. msg = "\n" + text.Wrap(msg, int(ws.Width)) + "\n" }