Skip to content

Commit 723e0c4

Browse files
committed
Fix problem with padRows() where it was adding an extra row.
1 parent 226cf0f commit 723e0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mathjax3-ts/output/chtml/Wrappers/mtable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class CHTMLmtable extends CHTMLWrapper {
153153
* Pad any short rows with extra cells
154154
*/
155155
protected padRows() {
156-
for (const row of Array.from(this.chtml.childNodes)) {
156+
for (const row of Array.from((this.chtml.firstChild as HTMLElement).childNodes)) {
157157
while (row.childNodes.length < this.numCols) {
158158
row.appendChild(this.html('mjx-mtd'));
159159
}

0 commit comments

Comments
 (0)