Fixed issue with tables that contain only one cell

This commit is contained in:
Laurent Cozic 2020-01-08 16:51:43 +00:00
parent 9a12000eb0
commit 0b2f3dc10a

View File

@ -131,7 +131,7 @@ function nodeContainsTable(node) {
function tableShouldBeSkipped(tableNode) {
if (!tableNode) return true;
if (!tableNode.rows) return true;
if (tableNode.rows.length <= 1 && tableNode.rows[0].childNodes.length <= 1) return true; // Table with only one cell
if (tableNode.rows.length === 1 && tableNode.rows[0].childNodes.length <= 1) return true; // Table with only one cell
if (nodeContainsTable(tableNode)) return true;
return false;
}