mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Correct errant newlines.
This commit is contained in:
@@ -965,7 +965,7 @@
|
|||||||
return "'+\n_.escape(" + unescape(code) + ")+\n'";
|
return "'+\n_.escape(" + unescape(code) + ")+\n'";
|
||||||
})
|
})
|
||||||
.replace(settings.interpolate || noMatch, function(match, code) {
|
.replace(settings.interpolate || noMatch, function(match, code) {
|
||||||
return "'+(\n" + unescape(code) + ")+\n'";
|
return "'+\n(" + unescape(code) + ")+\n'";
|
||||||
})
|
})
|
||||||
.replace(settings.evaluate || noMatch, function(match, code) {
|
.replace(settings.evaluate || noMatch, function(match, code) {
|
||||||
return "';\n" + unescape(code) + "\n;__p+='";
|
return "';\n" + unescape(code) + "\n;__p+='";
|
||||||
@@ -987,7 +987,7 @@
|
|||||||
// Provide the compiled function source as a convenience for build time
|
// Provide the compiled function source as a convenience for build time
|
||||||
// precompilation.
|
// precompilation.
|
||||||
template.source = 'function(' + (settings.variable || 'obj') + '){\n' +
|
template.source = 'function(' + (settings.variable || 'obj') + '){\n' +
|
||||||
source + '\n}';
|
source + '}';
|
||||||
|
|
||||||
return template;
|
return template;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user