Normally paragraphs in table cells are compacted, that is, the <p> tag inside <td> is stripped.
However such paragraphs are not compacted when the table itself is nested in a list.
This causes a problem when custom CSS styles are applied to <p> tags.
It happens because `visit_*_list` functions set `compact_p` flag to `None` and
`visit_table` does not reset it.
A sample file is attached.
Log in to post a comment.