# HG changeset patch # User John Rouillard # Date 1774151354 14400 # Node ID 6783a7f2b5e19f86cbe10b57a0910e288d331d22 # Parent 5800afdebded1e36b554d1d6d43984c2a19369a9 bug: fix replacement for param writer_name -> writer correctly. Use the html4css1 writer for now. If you use the html5_polyglot you end up with:
processed rst
rather than (html4css1 writer's):
processed rst
there can only be one
per document. Each message must not be inside a
tag. I could string munge the main tag to a div. But that's ugly. The correct way is to subclass html5_polyglot and override the HTMLTrnslator::documenttag_args replacing {'tagname': 'main'} with {'tagname': 'div', "CLASS": "document"} or something similar. That's a change for another time. diff -r 5800afdebded -r 6783a7f2b5e1 roundup/cgi/templating.py --- a/roundup/cgi/templating.py Sat Mar 21 21:40:57 2026 -0400 +++ b/roundup/cgi/templating.py Sat Mar 21 23:49:14 2026 -0400 @@ -40,6 +40,7 @@ try: from docutils.core import publish_parts as ReStructuredText + from docutils.writers.html4css1 import Writer as html_writer except ImportError: ReStructuredText = None try: @@ -1887,7 +1888,7 @@ raise return u2s(ReStructuredText( - s, writer="html", + s, writer=html_writer(), settings_overrides=self.rst_defaults)["html_body"]) def markdown(self, hyperlink=1):