From daad0ec1427c5a81351d406c0260583552867a98 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 21 Dec 2016 12:08:39 +0000 Subject: [PATCH] xlsx-utils: Automatically trim cell values --- plugins/tiddlywiki/xlsx-utils/importer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/xlsx-utils/importer.js b/plugins/tiddlywiki/xlsx-utils/importer.js index 6bd2f0946..34524c9e1 100644 --- a/plugins/tiddlywiki/xlsx-utils/importer.js +++ b/plugins/tiddlywiki/xlsx-utils/importer.js @@ -143,7 +143,8 @@ XLSXImporter.prototype.processField = function(fieldImportSpecTitle) { value = fieldImportSpec.fields["import-field-value"] break; } - if((value || "").trim() === "") { + value = (value || "").trim(); + if(value === "") { if((fieldImportSpec.fields["import-field-skip-tiddler-if-blank"] || "").trim().toLowerCase() === "yes") { this.skipTiddler = true; }