Re: docutils.conf and rst2html5

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2017-02-28, Matěj Cepl wrote:
> Using “rst2html5 (Docutils 0.13.1 [release], Python 2.7.13, on 
> linux2)” and this docutils.conf in the directory with my *.rst 
> file:

...
> [html5 writer]
...

> I get no stylesheet or template used. However, when I run 

>     $ rst2html5 --template=layout.tpl \
>         --stylesheet-path=minimal.css,plain.css,mystyle.css \
>         source.rst >output.html

> both template and stylesheets are used.

> What’s the difference?

You found a bug. The html5 writer used the wrong config section. (I missed
this during the renaming from html-plain.)

This is fixed now (Revision 8041).

Thank you for reporting and sorry for the inconvenience,

Günter


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
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.