Skip to content

Commit

Permalink
Only merge table row descriptions.
Browse files Browse the repository at this point in the history
The first six table cells are descriptive and can be merged.
  • Loading branch information
moritzbuhl authored and bluhm committed Jul 12, 2024
1 parent dd3e50b commit 2136f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2136f4a

Please sign in to comment.