Skip to content

Commit

Permalink
Fix newlines in wrapped LICENSE texts
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Jun 15, 2017
1 parent f768d75 commit 47d6c63
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions licensor
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,12 @@ var licensePath = path.join(cwd, 'LICENSE')

var wrapText = options.width
? function (x) {
return wrap(
x.replace(/\n\n/g, '\n'),
{
width: options.width,
indent: '',
trim: true,
newline: '\n'
}
)
return wrap(x, {
width: options.width,
indent: '',
trim: true,
newline: '\n'
})
}
: function (x) { return x }

Expand Down

0 comments on commit 47d6c63

Please sign in to comment.