1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00

Fixed issue with importing an empty TiddlyWiki document

This commit is contained in:
Jeremy Ruston 2012-03-10 19:31:25 +00:00
parent b513daaff8
commit 220a10480e

View File

@ -161,8 +161,10 @@ var inputTiddlyWiki = function(text,fields) {
while(match && startPos < storeAreaPos[1]) { while(match && startPos < storeAreaPos[1]) {
var endPos = endOfDivRegExp.lastIndex, var endPos = endOfDivRegExp.lastIndex,
tiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields); tiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields);
if(tiddlerFields.text !== null) {
tiddlerFields.text = utils.htmlDecode(tiddlerFields.text); tiddlerFields.text = utils.htmlDecode(tiddlerFields.text);
results.push(tiddlerFields); results.push(tiddlerFields);
}
startPos = endPos; startPos = endPos;
match = endOfDivRegExp.exec(text); match = endOfDivRegExp.exec(text);
} }