From 1affe413088c45eb4f650a90f57ecae1c694ee50 Mon Sep 17 00:00:00 2001 From: Erek Speed Date: Thu, 17 Sep 2020 06:28:03 +0900 Subject: [PATCH] fix: make all-contributors output prettier compliant. (#283) Fixes #441 --- src/generate/__tests__/__snapshots__/index.js.snap | 2 ++ src/generate/__tests__/index.js | 1 + src/generate/index.js | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/generate/__tests__/__snapshots__/index.js.snap b/src/generate/__tests__/__snapshots__/index.js.snap index bc42607..52a0eeb 100644 --- a/src/generate/__tests__/__snapshots__/index.js.snap +++ b/src/generate/__tests__/__snapshots__/index.js.snap @@ -20,6 +20,7 @@ These people contributed to the project: + Thanks a lot everyone!" @@ -51,6 +52,7 @@ These people contributed to the project: + Thanks a lot everyone!" diff --git a/src/generate/__tests__/index.js b/src/generate/__tests__/index.js index a922b38..ece35d5 100644 --- a/src/generate/__tests__/index.js +++ b/src/generate/__tests__/index.js @@ -143,6 +143,7 @@ test('inject nothing if there are no contributors', () => { '', '', '', + '', '', '', 'Thanks a lot everyone!', diff --git a/src/generate/index.js b/src/generate/index.js index 549f8ea..cacc21e 100644 --- a/src/generate/index.js +++ b/src/generate/index.js @@ -31,7 +31,7 @@ function injectListBetweenTags(newContent) { newContent, '', '\n', - '\n', + '\n\n', previousContent.slice(startOfClosingTagIndex), ].join('') }