summaryrefslogtreecommitdiff
path: root/ext/js/templates/sandbox
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-03-03 05:48:57 +0100
committerGitHub <noreply@github.com>2024-03-03 04:48:57 +0000
commit5ec2344df95da39cda4ad07cfe5181b05fa24830 (patch)
tree3774ad807c1b2c301fd0e49ae1c2548e0c4fc6bf /ext/js/templates/sandbox
parentf162884b4cbfa5adf4a4e3dbbbad0d635fb5d603 (diff)
fix whitespace (#755)
Diffstat (limited to 'ext/js/templates/sandbox')
-rw-r--r--ext/js/templates/sandbox/template-renderer.js2
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);
}