docx4j-ImportXHTML icon indicating copy to clipboard operation
docx4j-ImportXHTML copied to clipboard

Table within div with margin applied incorrecly

Open dkrahn opened this issue 6 years ago • 1 comments

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?

dkrahn avatar Mar 12 '19 17:03 dkrahn

Any updates?

dkrahn avatar Apr 16 '20 11:04 dkrahn