docx4j-ImportXHTML
docx4j-ImportXHTML copied to clipboard
Table within div with margin applied incorrecly
With the current version(6.1.0), when I have the following html, it generates an unexpected format.
<div style="padding-left: 2cm; padding-right: 2cm;">
<p>Table below</p>
<table border="1" cellspacing="0" style="width:100%">
<tbody>
<tr>
<td><p>table content</p></td>
</tr>
</tbody>
</table>
</div>
The padding gets applied inside each cell and not around the table.
Is there a way to fix this?
Any updates?