Skip to content

Commit a15573b

Browse files
committed
Merge pull request #438 from franzholz/patch-2
Update Table.php: Always close th as th
2 parents 8dcbc92 + ca664a5 commit a15573b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/HTML/Element/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function write()
5151
$cellTag = $tblHeader ? 'th' : 'td';
5252
$content .= "<{$cellTag}>" . PHP_EOL;
5353
$content .= $writer->write();
54-
$content .= '</td>' . PHP_EOL;
54+
$content .= "</{$cellTag}>" . PHP_EOL;
5555
}
5656
$content .= '</tr>' . PHP_EOL;
5757
}

0 commit comments

Comments
 (0)