1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Ignore whitespace after the final block

This commit is contained in:
Jeremy Ruston 2012-05-26 23:42:48 +01:00
parent 9b9de6bbab
commit 9d90c8fd78

View File

@ -41,6 +41,9 @@ Parse a block of text at the current position
*/
WikiTextRenderer.prototype.parseBlock = function() {
this.skipWhitespace();
if(this.pos >= this.sourceLength) {
return [];
}
// Look for a block rule
this.parser.blockRules.regExp.lastIndex = this.pos;
var match = this.parser.blockRules.regExp.exec(this.source);