mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
xlsx-utils: Automatically trim cell values
This commit is contained in:
parent
ed1a7e73cd
commit
daad0ec142
@ -143,7 +143,8 @@ XLSXImporter.prototype.processField = function(fieldImportSpecTitle) {
|
|||||||
value = fieldImportSpec.fields["import-field-value"]
|
value = fieldImportSpec.fields["import-field-value"]
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if((value || "").trim() === "") {
|
value = (value || "").trim();
|
||||||
|
if(value === "") {
|
||||||
if((fieldImportSpec.fields["import-field-skip-tiddler-if-blank"] || "").trim().toLowerCase() === "yes") {
|
if((fieldImportSpec.fields["import-field-skip-tiddler-if-blank"] || "").trim().toLowerCase() === "yes") {
|
||||||
this.skipTiddler = true;
|
this.skipTiddler = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user