diff --git a/lib/main/build-site.js b/lib/main/build-site.js index cf4cab92a..a03883ac6 100644 --- a/lib/main/build-site.js +++ b/lib/main/build-site.js @@ -24,7 +24,7 @@ function build(type) { $a.replaceWith($a.html()); }); - var html = $.html().replace(/(<)!--\s*|\s*--(>)/g, '$1$2'); + var html = _.trim($.html().replace(/(<)!--\s*|\s*--(>)/g, '$1$2')); html = [ '---', @@ -33,6 +33,7 @@ function build(type) { 'title: Lodash Documentation', 'version: ' + (version || null), '---', + '', html, ].join('\n');