1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 20:10:03 +00:00

fixed issue #314 - fix for > at end of line

This commit is contained in:
Stephan Hradek 2013-12-29 23:57:42 +01:00
parent 8e080eac0a
commit 3cc8138133

View File

@ -64,6 +64,11 @@ var processRow = function(prevColumns) {
} else if(cellMatch[2]) { } else if(cellMatch[2]) {
// End of row // End of row
if(prevCell && colSpanCount > 1) { if(prevCell && colSpanCount > 1) {
try {
colSpanCount+= prevCell.attributes.colspan.value;
} catch (e) {
colSpanCount-= 1;
}
$tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount); $tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount);
} }
this.parser.pos = cellRegExp.lastIndex - 1; this.parser.pos = cellRegExp.lastIndex - 1;