mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-04 09:33:00 +00:00 
			
		
		
		
	Fixed two bugs
This commit is contained in:
		@@ -92,7 +92,7 @@ WikiTextRenderer.prototype.parseRun = function(terminatorRegExp) {
 | 
				
			|||||||
				if(terminatorMatch.index > this.pos) {
 | 
									if(terminatorMatch.index > this.pos) {
 | 
				
			||||||
					tree.push($tw.Tree.Text(this.source.substring(this.pos,terminatorMatch.index)));
 | 
										tree.push($tw.Tree.Text(this.source.substring(this.pos,terminatorMatch.index)));
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				this.pos = terminatorMatch.index;
 | 
									this.pos = terminatorMatch.index + terminatorMatch[0].length;
 | 
				
			||||||
				return tree;
 | 
									return tree;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@@ -120,7 +120,7 @@ WikiTextRenderer.prototype.parseRun = function(terminatorRegExp) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	// Process the remaining text
 | 
						// Process the remaining text
 | 
				
			||||||
	if(this.pos < this.sourceLength) {
 | 
						if(this.pos < this.sourceLength) {
 | 
				
			||||||
		tree.push($tw.tree.Text(this.source.substr(this.pos)));
 | 
							tree.push($tw.Tree.Text(this.source.substr(this.pos)));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	this.pos = this.sourceLength;
 | 
						this.pos = this.sourceLength;
 | 
				
			||||||
	return tree;
 | 
						return tree;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user