From c4c7b1868c57f3fd2f6f72b9b127645327a91913 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 15 Jul 2016 16:55:57 +0100 Subject: [PATCH] Ensure .tid extension when saving .tid files Missed off of a4506231a70941041e421d24810339ba5bfb9b43 --- plugins/tiddlywiki/filesystem/filesystemadaptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index 94312fd7f..a2d75982f 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -175,7 +175,7 @@ FileSystemAdaptor.prototype.saveTiddler = function(tiddler,callback) { } else { // Save the tiddler as a self contained templated file content = self.wiki.renderTiddler("text/plain","$:/core/templates/tid-tiddler",{variables: {currentTiddler: tiddler.fields.title}}); - fs.writeFile(fileInfo.filepath,content,{encoding: "utf8"},function (err) { + fs.writeFile(fileInfo.filepath + ".tid",content,{encoding: "utf8"},function (err) { if(err) { return callback(err); }