[Python-modules-team] Bug#953686: Add support for list-table :widths: and :header-rows: to rst2html?

Petter Reinholdtsen pere at hungry.com
Wed Jun 3 06:45:06 BST 2020


[Dmitry Shachnev]
> I think the problem here is the indentation. The example in documentation [1]
> has the same indent level for directive options and for the content.

Aha.  But as far as I can tell from the specification in 
<URL: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#field-lists >
and
<URL: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#directives >
there is no requirement on how much indentation is used for directive
options, but perhaps I am reading it wrong.  Do you know why the
rst2html tool believe there is, while pandoc and xmlto do not?  Perhaps
they all should be made to agree on the syntax...

Anyway, thank you very much for the idea for a workaround.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Python-modules-team mailing list