Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
pretty print JSON into note content
zadamc8e01d6ccedd
diff --git a/src/entities/note.js b/src/entities/note.jsindex 05ee5a0a55..a206b5caa5 100644--- a/src/entities/note.js+++ b/src/entities/note.js@@ -106,7 +106,7 @@ class Note extends Entity {/** @returns {Promise} */async setJsonContent(content) {- await this.setContent(JSON.stringify(content));+ await this.setContent(JSON.stringify(content, null, '\t'));}/** @returns {boolean} true if this note is the root of the note tree. Root note has "root" noteId */