From: David G. <go...@py...> - 2019-09-27 04:24:06
|
A sample of reST from the test suite is below (if the indentation doesn't come through, see [1]_). The third column of the header and the first column of the table body row consist of multi-line block markup, in this case bullet lists. Note that between quotation marks, line breaks are significant. All lines must be indented, and the greatest common indentation is removed. .. csv-table:: complex internal structure :header: "Treat", Quantity, " * Description, * Definition, or * Narrative" " * Ice cream * Sorbet * Albatross", 2.99, "On a stick!" .. [1] https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py David Goodger <https://david.goodger.org> On Thu, 26 Sep 2019 at 22:32, jacques yakoub <jac...@ho...> wrote: > Hello, > > I would like to insert a code-block inside this csv table (inside the > "code" column ). > > .. csv-table:: Compilations errors > :header: "File","Line","Error Message","Code" > :widths: auto > > As explained in the docs ( > http://docutils.sourceforge.net/docs/ref/rst/directives.html#id4 ) : " > > *Block markup and inline markup within cells is supported. Line ends are > recognized within cells.*", > > I would like to use an block markup so that I can replace it with the > right code-block later ( the code could be on multiple lines ). Can you > give me a code sample for this situation, if it is possible ? > > If not, feel free to suggest an alternative as I should programmatically > generate this code in python. > > Thanks for your help. > > Jacques > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |