mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40: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
|
// Parse the cell
|
||||||
cell.children = this.parseRun(cellTermRegExp);
|
cell.children = this.parseRun(cellTermRegExp);
|
||||||
// Set the alignment for the cell
|
// 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";
|
cell.attributes.align = spaceLeft ? "center" : "left";
|
||||||
} else if(spaceLeft) {
|
} else if(spaceLeft) {
|
||||||
cell.attributes.align = "right";
|
cell.attributes.align = "right";
|
||||||
@ -151,7 +151,6 @@ exports.parse = function(match,isBlock) {
|
|||||||
rowCount++;
|
rowCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rowRegExp.lastIndex = this.pos;
|
|
||||||
rowMatch = rowRegExp.exec(this.source);
|
rowMatch = rowRegExp.exec(this.source);
|
||||||
}
|
}
|
||||||
return [table];
|
return [table];
|
||||||
|
Loading…
Reference in New Issue
Block a user