Skip to content

Commit

Permalink
build(generate-types): fix line breaks in JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 14, 2019
1 parent 91b9b4f commit 7634c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function toParamAlias (param, i, params) {
}

function jsdoc (description) {
return description && '/**\n' + description.split('\n').map(str => '* ' + str) + '\n*/'
return description && '/**\n' + description.trim().split('\n').map(str => '* ' + str).join('\n') + '\n*/'
}

function normalize (methodName) {
Expand Down

0 comments on commit 7634c59

Please sign in to comment.