[Templates] Normalize spacing

This commit is contained in:
Victor Woeltjen 2016-02-26 13:03:06 -08:00
parent e13e068b6e
commit 8ea56486c5

View File

@ -72,7 +72,11 @@ function injectRequireArgument(sourceCode, templateUrls) {
}
function rewriteUrl(sourceLine) {
return "\"template\": " + toTemplateName(getTemplateUrl(sourceLine));
return [
sourceLine.substring(0, sourceLine.indexOf(sourceLine.trim())),
"\"template\": " + toTemplateName(getTemplateUrl(sourceLine)),
_.endsWith(sourceLine, ",") ? "," : ""
].join('');
}
function rewriteLine(sourceLine) {