Mercurial > p > roundup > code
diff doc/upgrading.txt @ 6128:c75d0f27a10a
doc fix escape perceived test substitution
build_doc was throwing erros on unesacaped |e and/ |safe.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 03 Apr 2020 22:02:56 -0400 |
| parents | 5260c15d153f |
| children | de9d602c8ce6 |
line wrap: on
line diff
--- a/doc/upgrading.txt Fri Apr 03 18:31:35 2020 -0400 +++ b/doc/upgrading.txt Fri Apr 03 22:02:56 2020 -0400 @@ -260,15 +260,15 @@ Auto escaping has been enabled in the jinja template engine, this means it is no longer necessary to manually escape dynamic strings -with "|e", but strings that should not be escaped need to be marked -with "|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n +with "\|e", but strings that should not be escaped need to be marked +with "\|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n extension has been enabled and the template has been updated to use the extension for translatable text instead of explicit "i18n.gettext" calls: {% trans %}List of issues{% endtrans %} -instead of +instead of: {{ i18n.gettext('List of issues')|u }}
