Skip to content

Commit 47d6c63

Browse files
committed
Fix newlines in wrapped LICENSE texts
1 parent f768d75 commit 47d6c63

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

licensor

+6-9
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,12 @@ var licensePath = path.join(cwd, 'LICENSE')
115115

116116
var wrapText = options.width
117117
? function (x) {
118-
return wrap(
119-
x.replace(/\n\n/g, '\n'),
120-
{
121-
width: options.width,
122-
indent: '',
123-
trim: true,
124-
newline: '\n'
125-
}
126-
)
118+
return wrap(x, {
119+
width: options.width,
120+
indent: '',
121+
trim: true,
122+
newline: '\n'
123+
})
127124
}
128125
: function (x) { return x }
129126

0 commit comments

Comments
 (0)