in tools/js/generator.js [44:54]
function formatCredentialTextForHeader(credentialText) {
// Replace any CR/LF pairs with a newline character.
credentialText = credentialText.replace(/\r\n/g, "\n");
// Add line endings for C-language variable declaration.
credentialText = credentialText.replace(/\n/g, "\\n\"\\\n\"");
// Remove '\n"' from the last line of the declaration and add a semicolon.
credentialText = credentialText.slice(0, -6) + "\"\n";
return credentialText;
}