strings are so fun :|
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user