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
Putting a div inside a table cell (td) will result in an indentation if the cell, table, body or html parent elements does not have padding, margin set to 0
#73
Open
amer1993 opened this issue
Feb 7, 2021
· 0 comments
Hi,
The following HTML
<table><tr><td>Value 1</td></tr><tr><td><div>Value 2</div></td></tr></table>
will result to an indentation for Value 2 where it should not.
I solved this by putting padding 0 to the parent box elements
e.g:
<table><tr><td style=\"padding: 0;\">Value 1</td></tr><tr><td style=\"padding: 0;\"><div>Value 2</div></td></tr></table>
By debugging, I found the responsible code that should resolve this issue is commented out:
docx4j-ImportXHTML/src/main/java/org/docx4j/convert/in/xhtml/XHTMLImporterImpl.java
Line 2359 in 7cf249c
What is the problem with having this code uncommented?
Thanks in advance.
The text was updated successfully, but these errors were encountered: