Bugs item #3600051, was opened at 2013-01-08 22:58
Message generated for change (Comment added) made by milde
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3600051&group_id=38414
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTML writer
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Kirill Simonov (kirill_simonov)
Assigned to: Nobody/Anonymous (nobody)
Summary: table cells are not compacted
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Günter Milde (milde)
Date: 2013-01-21 08:09
Message:
Fixed.
Mind that the "strict" html writer keeps the <p> tags.
Selective custom styling can be achieved with CSS rules like
.compact p, th p, .simple p {margin-top: 0; margin-bottom: 0; }
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=422030&aid=3600051&group_id=38414
|