mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Fixed bug with table parser
This commit is contained in:
parent
739b641f39
commit
515e0d9bf1
@ -86,7 +86,7 @@ var processRow = function(prevColumns) {
|
||||
// Parse the cell
|
||||
cell.children = this.parseRun(cellTermRegExp);
|
||||
// Set the alignment for the cell
|
||||
if(cellMatch[1].substr(cellMatch[1].length-2,1) === " ") { // spaceRight
|
||||
if(cellMatch[1].substr(cellMatch[1].length-1,1) === " ") { // spaceRight
|
||||
cell.attributes.align = spaceLeft ? "center" : "left";
|
||||
} else if(spaceLeft) {
|
||||
cell.attributes.align = "right";
|
||||
@ -151,7 +151,6 @@ exports.parse = function(match,isBlock) {
|
||||
rowCount++;
|
||||
}
|
||||
}
|
||||
rowRegExp.lastIndex = this.pos;
|
||||
rowMatch = rowRegExp.exec(this.source);
|
||||
}
|
||||
return [table];
|
||||
|
Loading…
Reference in New Issue
Block a user