diff options
Diffstat (limited to 'ext/js/templates/sandbox')
-rw-r--r-- | ext/js/templates/sandbox/template-renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/templates/sandbox/template-renderer.js b/ext/js/templates/sandbox/template-renderer.js index 90fb63f3..84eb6a19 100644 --- a/ext/js/templates/sandbox/template-renderer.js +++ b/ext/js/templates/sandbox/template-renderer.js @@ -140,7 +140,7 @@ export class TemplateRenderer { let additions2; try { additions1 = (typeof renderSetup === 'function' ? renderSetup(data) : null); - result = instance(data).trim(); + result = instance(data).replace(/^\n+|\n+$/g, ''); } finally { additions2 = (typeof renderCleanup === 'function' ? renderCleanup(data) : null); } |