Re: rst2html5: why is table data wrapped in a paragraph

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
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


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.