Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(HTML To Docx) Convert html table loses css style when I use the style border-collapse: collapse; #77

Open
AchrafLakhdhar opened this issue Sep 24, 2021 · 0 comments

Comments

@AchrafLakhdhar
Copy link

Hi,
I'm using docx4j-ImportXHTML 8.2.1 and I'm trying to convert a html table to a docx document, but the css inline style and the html property "border" does not remain when I use the property "border-collapse: collapse;"

This is an example when I use "border-collapse: collapse;"

<table width="100%" border="5" style="border-collapse: collapse;" >
  <tr>
    <td>Test Table Cell 1</td>
  </tr>
</table>

The docx result is :
collapse

However when I use border-collapse: separate, the border and the style is well formatted

<table width="100%" border="5" style="border-collapse: separate;" >
  <tr>
    <td>Test Table Cell 1</td>
  </tr>
</table>

separate

Thank you very much in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant