mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 15:24:50 +00:00
fixed issue #314
This commit is contained in:
parent
bd7db62da0
commit
8e080eac0a
@ -51,6 +51,16 @@ var processRow = function(prevColumns) {
|
|||||||
colSpanCount++;
|
colSpanCount++;
|
||||||
// Move to just before the `|` terminating the cell
|
// Move to just before the `|` terminating the cell
|
||||||
this.parser.pos = cellRegExp.lastIndex - 1;
|
this.parser.pos = cellRegExp.lastIndex - 1;
|
||||||
|
} else if(cellMatch[1] === "<" && prevCell) {
|
||||||
|
try {
|
||||||
|
colSpanCount = 1+prevCell.attributes.colspan.value;
|
||||||
|
} catch (e) {
|
||||||
|
colSpanCount = 2;
|
||||||
|
}
|
||||||
|
$tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount);
|
||||||
|
colSpanCount = 1;
|
||||||
|
// Move to just before the `|` terminating the cell
|
||||||
|
this.parser.pos = cellRegExp.lastIndex - 1;
|
||||||
} else if(cellMatch[2]) {
|
} else if(cellMatch[2]) {
|
||||||
// End of row
|
// End of row
|
||||||
if(prevCell && colSpanCount > 1) {
|
if(prevCell && colSpanCount > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user