Skip to content

Commit afe9abd

Browse files
committed
Minor change to generated examples
1 parent e76947b commit afe9abd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

_examples/gen.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ func (cmd *command) addFlag(sect, name, short, typstr, desc string) {
365365
const sortBy = `Sort by `
366366
if cmd.app == "podman" && name == "sort" && strings.HasPrefix(desc, sortBy) {
367367
v := strings.Split(desc[len(sortBy):], ", ")
368+
for i := range v {
369+
v[i] = strings.TrimSpace(v[i])
370+
}
368371
slices.Sort(v)
369372
desc = sortBy + strings.Join(v, ", ")
370373
}

0 commit comments

Comments
 (0)