Mercurial > p > roundup > code
view website/issues/html/_generic.calendar.html @ 8537:6783a7f2b5e1
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:
<main>
processed rst
</main>
rather than (html4css1 writer's):
<div class="document">
processed rst
</div>
there can only be one <main> per document. Each message must not be
inside a <main> 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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 21 Mar 2026 23:49:14 -0400 |
| parents | 28aa76443f58 |
| children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="@@file/style.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8;" /> <meta name="robots" content="noindex, nofollow" /> <title tal:content="string:Roundup Calendar"></title> <script language="Javascript" type="text/javascript" tal:attributes="nonce request/client/client_nonce" tal:content="string: // this is the name of the field in the original form that we're working on form = window.opener.document.${request/form/form/value}; field = '${request/form/property/value}';" > </script> </head> <body class="body" tal:content="structure python:utils.html_calendar(request)"> </body> </html>
