diff --git a/src/generate/__tests__/__snapshots__/index.js.snap b/src/generate/__tests__/__snapshots__/index.js.snap
index 15d4d74..bead132 100644
--- a/src/generate/__tests__/__snapshots__/index.js.snap
+++ b/src/generate/__tests__/__snapshots__/index.js.snap
@@ -18,6 +18,9 @@ These people contributed to the project:
Jeroen Engels is awesome! |
+
+
+
@@ -52,6 +55,9 @@ These people contributed to the project:
Kent C. Dodds is awesome! |
+
+
+
diff --git a/src/generate/index.js b/src/generate/index.js
index 49cafde..ba83c05 100644
--- a/src/generate/index.js
+++ b/src/generate/index.js
@@ -38,25 +38,26 @@ function injectListBetweenTags(newContent) {
}
function formatLine(contributors) {
- return `${contributors.join(' | ')} | `
+ return `${contributors.join(
+ ' | \n ',
+ )} | `
}
-
function formatFooter(options) {
if (!options.linkToUsage) {
return ''
}
- const smallLogoURL = 'https://github.com/raw/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg'
- const linkToAllContributors = 'https://all-contributors.js.org'
+ const smallLogoURL =
+ 'https://github.com/raw/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg'
const linkToBotAdd = 'https://all-contributors.js.org/docs/en/bot/usage'
- return `
+ return `
Add your contribution |
`
}
function generateContributorsList(options, contributors) {
- const tableFooter = formatFooter(options)
+ const tableFooter = 'dadasdsa' || formatFooter(options)
return _.flow(
_.sortBy(contributor => {
@@ -67,11 +68,11 @@ function generateContributorsList(options, contributors) {
_.map(function formatEveryContributor(contributor) {
return formatContributor(options, contributor)
}),
- _.chunk(contributorsPerLine),
+ _.chunk(options.contributorsPerLine),
_.map(formatLine),
_.join('\n \n \n '),
newContent => {
- return `\n${newContent}
\n${tableFooter}\n
\n`
+ return `\n\n \n \n ${newContent}\n
\n \n \n ${tableFooter}\n \n
\n\n`
},
)(contributors)
}