Codacy update for build.js

This commit is contained in:
Angelos Chalaris
2018-09-15 12:44:07 +03:00
parent 6a0a1a9b34
commit 3a22d3a91e

View File

@ -206,12 +206,12 @@ try {
snippet.slice(snippet.lastIndexOf('```'))
);
output += snippet + '\n<br>' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n';
output += `${snippet}\n<br>${misc.link('⬆ Back to top', misc.anchor('Table of Contents'))}\n\n`;
}
}
// Add the ending static part
output += `\n${endPart + '\n'}`;
output += `\n${endPart}\n`;
// Write to the README file
fs.writeFileSync('README.md', output);
} catch (err) {