strings are so fun :|

This commit is contained in:
2022-06-08 09:47:22 -05:00
parent 964ef4425b
commit 4fb2f7745e
3 changed files with 18 additions and 10 deletions

View File

@@ -13,13 +13,11 @@ export function updateReadmeFile(fileList: readmeData[]) {
let installLinks = fileList.map(readmeDataToString).join('\n')
let installLinksAll = `
<!-- START INSTALL LINKS -->
let installLinksAll = `<!-- START INSTALL LINKS -->
## Installs
${installLinks}
<!-- END INSTALL LINKS -->
`
<!-- END INSTALL LINKS -->`
console.log(JSON.stringify(installLinksAll))
@@ -64,9 +62,15 @@ function readReadmeFile(readmeFile: string): [string, string] {
}
if (!contentPre.endsWith('\n')) {
if (!contentPre.endsWith('\n\n')) {
contentPre += '\n'
}
contentPre += '\n'
}
if (!contentPost.startsWith('\n')) {
if (!contentPost.startsWith('\n\n')) {
contentPre += '\n'
}
contentPost += '\n'
}