Skip to content

Commit

Permalink
fix: we had too many \n characters (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Apr 11, 2016
1 parent 7a3b854 commit 67a01cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function outputChangelog (argv, cb) {

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

0 comments on commit 67a01cd

Please sign in to comment.