mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 10:46:42 +00:00
[Templates] Normalize spacing
This commit is contained in:
parent
e13e068b6e
commit
8ea56486c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user