From 2136f4ab7e356af83a94fd4bb63561f4f13c6c5f Mon Sep 17 00:00:00 2001 From: Moritz Buhl Date: Wed, 3 Jul 2024 13:28:38 +0200 Subject: [PATCH] Only merge table row descriptions. The first six table cells are descriptive and can be merged. --- tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tables.js b/tables.js index 5e3a9fc..b29fe03 100644 --- a/tables.js +++ b/tables.js @@ -35,7 +35,7 @@ function merge_rows() { console.warn(`inhomogeneous cell count: ${len} vs ${otr.length}.`); return; } - for (let i = 0; i < len; i++) { + for (let i = 0; i < 6; i++) { if (tr[i].innerText && otr[i].innerText == tr[i].innerText) { let rowspan = Number(otr[i].getAttribute('rowspan')); if (!rowspan) {