rst2html5.py --template from file is not replacing {head} and {body} placeholders in output
Sorin Pânca <[email protected]> Mon, 25 Apr 2022 14:47:47 +0300
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CADPD1jDZNKutBu0uzvyWHbn1B2dZZfJKwdNs7FLvpzQYRqPT8g@mail.gmail.com> |
Hello!
(I am not a subscriber of the mailing list and this is my first message.)
I have an issue using --template from file: the {head} and {body}
placeholders are not replaced. I installed docutils 0.18.1 using pip3
install docutils on Majaro Linux. The template I'm using does not
contain something different than the example template, only the URLs
inside are changed and a <div> added around {body}.
When I'm not using --template, the html is generated properly. When
using --template from file, the generated document is the same as the
template and it contains the placeholders, just like the template was
copied over as output.
Am I doing something wrong or is this a bug?
Command: rst2html5.py --template='site-root/htdocs/template.html'
--no-source-link --report=${ERROR_LEVEL} --no-generator
--toc-entry-backlinks --no-section-numbering --strip-comments --strict
--tab-width=4 doc.rst >> doc.html
Thank you!
--
Sorin Pânca.
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.