mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -54,13 +54,15 @@ export default class NoteSourceDialog extends BasicWidget {
|
||||
let textNode;
|
||||
|
||||
for (let i = 0; i < node.children.length; i++) {
|
||||
textNode = document.createTextNode('\n' + indentBefore);
|
||||
textNode = document.createTextNode(`
|
||||
${indentBefore}`);
|
||||
node.insertBefore(textNode, node.children[i]);
|
||||
|
||||
this.formatNode(node.children[i], level);
|
||||
|
||||
if (node.lastElementChild === node.children[i]) {
|
||||
textNode = document.createTextNode('\n' + indentAfter);
|
||||
textNode = document.createTextNode(`
|
||||
${indentAfter}`);
|
||||
node.appendChild(textNode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user