Skip to content

Build your personal knowledge base with Trilium Notes

indent data notes

zadam79e7762c7232
diff --git a/src/services/backend_script_api.js b/src/services/backend_script_api.js
index de0b292128..b5f9e72f1c 100644
--- a/src/services/backend_script_api.js
+++ b/src/services/backend_script_api.js
@@ -204,7 +204,7 @@ function BackendScriptApi(currentNote, apiParams) {
this.createDataNote = async (parentNoteId, title, content = {}) => await noteService.createNewNote({
parentNoteId,
title,
- content: JSON.stringify(content),
+ content: JSON.stringify(content, null, '\t'),
type: 'code',
mime: 'application/json'
});