Lots of JSHint induced tweaks

Still not spotless
This commit is contained in:
Jeremy Ruston
2011-12-09 16:34:02 +00:00
parent 1371423587
commit 7184bc5fa5
15 changed files with 45 additions and 36 deletions

View File

@@ -2,7 +2,7 @@
Functions concerned with parsing representations of tiddlers
*/
/*global require: false, exports: false */
/*jslint node: true */
"use strict";
var utils = require("./Utils.js"),
@@ -91,9 +91,9 @@ tiddlerInput.parseTiddlerFileByMimeType = {
var match = endOfDivRegExp.exec(text);
while(match && startPos < storeAreaPos[1]) {
var endPos = endOfDivRegExp.lastIndex,
fields = tiddlerInput.parseTiddlerDiv(text.substring(startPos,endPos));
fields.text = utils.htmlDecode(fields.text);
results.push(fields);
tiddlerFields = tiddlerInput.parseTiddlerDiv(text.substring(startPos,endPos),fields);
tiddlerFields.text = utils.htmlDecode(tiddlerFields.text);
results.push(tiddlerFields);
startPos = endPos;
match = endOfDivRegExp.exec(text);
}