From 14868d82283fae13058b94441cd4f79135924b29 Mon Sep 17 00:00:00 2001 From: Stephan Hradek Date: Mon, 30 Dec 2013 00:28:43 +0100 Subject: [PATCH] also fixed issue #315 --- core/modules/parsers/wikiparser/rules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/table.js b/core/modules/parsers/wikiparser/rules/table.js index 9a894d81e..973cea457 100644 --- a/core/modules/parsers/wikiparser/rules/table.js +++ b/core/modules/parsers/wikiparser/rules/table.js @@ -104,7 +104,7 @@ var processRow = function(prevColumns) { // Parse the cell cell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true}); // Set the alignment for the cell - if(cellMatch[1].substr(cellMatch[1].length-1,1) === " ") { // spaceRight + if(this.parser.source.substr(this.parser.pos-2,1) === " ") { // spaceRight $tw.utils.addAttributeToParseTreeNode(cell,"align",spaceLeft ? "center" : "left"); } else if(spaceLeft) { $tw.utils.addAttributeToParseTreeNode(cell,"align","right");