Re: width vs csv-table

Guenter Milde via Docutils-users <[email protected]> Tue, 11 Jun 2019 07:44:51 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2019-06-10, Alan Isaac wrote:
> If I understand the documentation, the following should work::

>    .. csv-table:: Test
>       :width: 50%

>       test01
>       test02

> The html5 write produces no content for this.
> If I remove the `width` specification, the output is as expected.

I cannot reproduce. Here, with
`rst2html5 --link-stylesheet example.txt` I get the expected:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
<meta name="generator" content="Docutils 0.15b.dev: http://docutils.sourceforge.net/" />
<title>widetable.rst</title>
<link rel="stylesheet" href="<path-to>/docutils/writers/html5_polyglot/minimal.css" type="text/css" />
<link rel="stylesheet" href="<path-to>/docutils/writers/html5_polyglot/plain.css" type="text/css" />
</head>
<body>
<div class="document">


<table style="width: 50%">
<caption>Test</caption>
<colgroup>
<col style="width: 100%" />
</colgroup>
<tbody>
<tr><td><p>test01</p></td>
</tr>
<tr><td><p>test02</p></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>


Günter 



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.