This commit is contained in:
2022-06-08 09:54:18 -05:00
parent 95ec0c42f6
commit 789abd61d3
3 changed files with 5 additions and 26 deletions

View File

@@ -61,19 +61,8 @@ function readReadmeFile(readmeFile: string): [string, string] {
contentPost = content_replace.slice(index)
}
if (!contentPre.endsWith('\n')) {
contentPre += '\n'
}
if (!contentPre.endsWith('\n\n')) {
contentPre += '\n'
}
if (!contentPost.startsWith('\n')) {
contentPost += '\n'
}
if (!contentPost.startsWith('\n\n')) {
contentPre += '\n'
}
contentPre = contentPre.trimEnd() + '\n\n'
contentPost = '\n\n' + contentPost.trimStart()
console.log(
JSON.stringify(index),