Skip to content

Commit

Permalink
fix extra space in joined table headings
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Feb 2, 2024
1 parent 68f6685 commit c104180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function getStandingsHeaders(table: HTMLTableElement) {
for (let i = 0; i < rowTwoThs.length; i++) {
const th = rowTwoThs[i]
const heading = th.textContent?.trim() ?? ''
headings.push(rowOneHeadings[i] + ' ' + heading)
headings.push(rowOneHeadings[i] + (heading ? ` ${heading}` : ''))
}

return headings
Expand Down

0 comments on commit c104180

Please sign in to comment.