From 5394bbf06aef17d5d9bff84be4babd764bb4fa59 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 4 Jul 2016 11:52:31 -0700 Subject: [PATCH] Make newline formatting explicit. --- lib/main/build-site.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');