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:
parent
9b9de6bbab
commit
9d90c8fd78
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user