Skip to content

Commit 201944c

Browse files
committed
fix: no linebreaks in short desc
1 parent 83e2051 commit 201944c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cmd/generate/clients/clients.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ func splitDescription(p string) (string, string) {
243243
short := strings.TrimSpace(p[:idx+1])
244244
long := strings.TrimSpace(p[idx+1:])
245245

246+
// No extra newline characters in between
247+
short = strings.ReplaceAll(short, "\n", "")
248+
246249
return short, long
247250
}
248251

0 commit comments

Comments
 (0)