1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

xlsx-utils: Automatically trim cell values

This commit is contained in:
Jermolene 2016-12-21 12:08:39 +00:00
parent ed1a7e73cd
commit daad0ec142

View File

@ -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;
}