:|
This commit is contained in:
@@ -47,17 +47,17 @@ function readReadmeFile(readmeFile) {
|
||||
contentPost = content_replace.slice(index);
|
||||
}
|
||||
if (!contentPre.endsWith('\n')) {
|
||||
if (!contentPre.endsWith('\n\n')) {
|
||||
contentPre += '\n';
|
||||
}
|
||||
contentPre += '\n';
|
||||
}
|
||||
if (!contentPre.endsWith('\n\n')) {
|
||||
contentPre += '\n';
|
||||
}
|
||||
if (!contentPost.startsWith('\n')) {
|
||||
if (!contentPost.startsWith('\n\n')) {
|
||||
contentPre += '\n';
|
||||
}
|
||||
contentPost += '\n';
|
||||
}
|
||||
if (!contentPost.startsWith('\n\n')) {
|
||||
contentPre += '\n';
|
||||
}
|
||||
console.log(JSON.stringify(index), JSON.stringify(content), JSON.stringify(contentPre), JSON.stringify(contentPost));
|
||||
return [contentPre, contentPost];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user