Skip to content

Commit ca664a5

Browse files
author
Franz Holzinger
committed
Update Table.php
You must not open a <th> and close it as a </td>. read http://www.w3schools.com/tags/tag_th.asp
1 parent 8dcbc92 commit ca664a5

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)