Skip to content

Build your personal knowledge base with Trilium Notes

pretty print JSON into note content

zadamc8e01d6ccedd
diff --git a/src/entities/note.js b/src/entities/note.js
index 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 */