From c8e01d6ccedd75835bdf63272f01fecd42989a2c Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 5 Mar 2019 20:44:50 +0100 Subject: [PATCH] pretty print JSON into note content --- src/entities/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/note.js b/src/entities/note.js index 05ee5a0a5..a206b5caa 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 */