Skip to content

Commit

Permalink
fix: trim descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 31, 2018
1 parent d1042d8 commit d26baaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class CommandHelp {
if (!description) return
return [
bold('DESCRIPTION'),
indent(wrap(description, this.opts.maxWidth - 2, {trim: false, hard: true}), 2),
indent(wrap(description.trim(), this.opts.maxWidth - 2, {trim: false, hard: true}), 2),
].join('\n')
}

Expand Down

0 comments on commit d26baaa

Please sign in to comment.