kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Ignore whitespace after the final block
rodzic
9b9de6bbab
commit
9d90c8fd78
|
@ -41,6 +41,9 @@ Parse a block of text at the current position
|
||||||
*/
|
*/
|
||||||
WikiTextRenderer.prototype.parseBlock = function() {
|
WikiTextRenderer.prototype.parseBlock = function() {
|
||||||
this.skipWhitespace();
|
this.skipWhitespace();
|
||||||
|
if(this.pos >= this.sourceLength) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
// Look for a block rule
|
// Look for a block rule
|
||||||
this.parser.blockRules.regExp.lastIndex = this.pos;
|
this.parser.blockRules.regExp.lastIndex = this.pos;
|
||||||
var match = this.parser.blockRules.regExp.exec(this.source);
|
var match = this.parser.blockRules.regExp.exec(this.source);
|
||||||
|
|
Ładowanie…
Reference in New Issue