Skip to content

Commit

Permalink
Merge pull request #23988 from vbotbuildovich/backport-pr-23987-v24.1…
Browse files Browse the repository at this point in the history
….x-793

[v24.1.x] rpk: fix printing new lines
  • Loading branch information
twmb authored Nov 1, 2024
2 parents 48822d6 + 41a406e commit 599fad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/adminapi/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 599fad4

Please sign in to comment.