Skip to content

Commit 67a01cd

Browse files
committed
fix: we had too many \n characters (#17)
1 parent 7a3b854 commit 67a01cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function outputChangelog (argv, cb) {
9393

9494
changelogStream.on('end', function () {
9595
checkpoint('outputting changes to %s', [argv.infile])
96-
fs.writeFileSync(argv.infile, header + '\n' + content + oldContent, 'utf-8')
96+
fs.writeFileSync(argv.infile, header + '\n' + (content + oldContent).replace(/\n+$/, '\n'), 'utf-8')
9797
return cb()
9898
})
9999
}

0 commit comments

Comments
 (0)