From a14b8a94dfa15f7be6183515a7df8766579ede26 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 4 Feb 2017 18:08:43 +0000 Subject: [PATCH] Fix JSON format for bc61f7eebf9cf810d9b226c65a7f49744bd0a803 Otherwise the JSON files cannot be imported back into TiddlyWiki --- plugins/tiddlywiki/savetrail/savetrail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/savetrail/savetrail.js b/plugins/tiddlywiki/savetrail/savetrail.js index 421321b3a..19f22869c 100644 --- a/plugins/tiddlywiki/savetrail/savetrail.js +++ b/plugins/tiddlywiki/savetrail/savetrail.js @@ -87,7 +87,7 @@ function saveTiddlerFile(tiddler) { for(var field in tiddler.fields) { fields[field] = tiddler.getFieldString(field); } - var text = JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces), + var text = JSON.stringify([fields],null,$tw.config.preferences.jsonSpaces), link = document.createElement("a"); link.setAttribute("target","_blank"); link.setAttribute("rel","noopener noreferrer");