Skip to content

Commit

Permalink
JSDoc: Fixed line ends (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Aug 31, 2020
1 parent e4f6cca commit bf169e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gulpfile.js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ function docsRemoveExcessFiles() {
return del(jsDoc.junk);
}

const docs = series(docsClean, docsCreate, docsRemoveExcessFiles, docsAddFavicon);
function docsFixLineEnds(cb) {
// https://github.com/jsdoc/jsdoc/issues/1837
return pump([
src('docs/*.html'),
replace(/\r\n?|\n/g, '\n'),
dest('docs/')
], cb);
}

const docs = series(docsClean, docsCreate, docsRemoveExcessFiles, docsAddFavicon, docsFixLineEnds);

module.exports = {
docs,
Expand Down

0 comments on commit bf169e5

Please sign in to comment.