You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The table should render in full width and with proper table border.
Steps to reproduce
$section = $phpWord->addSection();
$header = ['size' => 16, 'bold' => true];
$section->addText('addHtml with theader AND tbody', $header);
//HTML content generated from editor
$table = '
<table>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
</tr>
</tbody>
</table>';
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $table, true);
$path = 'table.docx';
$phpWord->save($path);
### PHPWord version(s) where the bug happened
1.3
### PHP version(s) where the bug happened
8.1
### Priority
- [ ] I want to crowdfund the bug fix (with [@algora-io](https://docs.algora.io/bounties/overview)) and fund a community developer.
- [ ] I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)
The text was updated successfully, but these errors were encountered:
Describe the bug and add attachments
I have this code and it generates the below docx. but when opening in microsoft office table width is not 100% & table border is not showing at all.
Example.docx
When opening with office word:
Expected behavior
The table should render in full width and with proper table border.
Steps to reproduce
The text was updated successfully, but these errors were encountered: