kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Further style tweaks to #321
rodzic
1374bd9d78
commit
8fc5c1d4a0
|
@ -61,9 +61,9 @@ var processRow = function(prevColumns) {
|
|||
} else if(cellMatch[2]) {
|
||||
// End of row
|
||||
if(prevCell && colSpanCount > 1) {
|
||||
try {
|
||||
colSpanCount += prevCell.attributes.colspan.value;
|
||||
} catch(e) {
|
||||
if(prevCell.attributes && prevCell.attributes && prevCell.attributes.colspan) {
|
||||
colSpanCount += prevCell.attributes.colspan.value;
|
||||
} else {
|
||||
colSpanCount -= 1;
|
||||
}
|
||||
$tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount);
|
||||
|
|
|
@ -20,7 +20,7 @@ exports.addAttributeToParseTreeNode = function(node,name,value) {
|
|||
};
|
||||
|
||||
exports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {
|
||||
if(node.type === "element" && node.attributes && node.attributes[name] && node.attributes[name].value != undefined) {
|
||||
if(node.type === "element" && node.attributes && node.attributes[name] && node.attributes[name].value !== undefined) {
|
||||
return node.attributes[name].value;
|
||||
}
|
||||
return defaultValue;
|
||||
|
|
Ładowanie…
Reference in New Issue