From: Guenter M. <mi...@us...> - 2016-12-21 19:37:28
|
On 2016-12-21, Alan Isaac wrote: > When producing a csv-table with the new writer, > I discovered the cell content is wrapped not > just in a TD element but additionally in a P element. > Is this intentional? I can imagine a table cell with > multiple paragraphs, but I cannot imagine how to > produce that with a CSV table. It is intentional. The aim is consistency. For a table object in the document tree, it should not matter whether it was created with a grid-table, a csv-table or a list-table. The Docutils doctree and the native Docutils XML always have paragraphs in table cells. The html4css1 writer stripped paragraph elements in some cases in lists and table cells, because "styling away" the leading and trailing vertical space is impossible/complicated with CSS1. However, with CSS2 this is no longer a problem. Günter |