mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-18 21:04:27 +00:00
Ignore whitespace after the final block
This commit is contained in:
1 parent
9b9de6bbab
commit
9d90c8fd78
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user