Skip to content

Commit f520f5f

Browse files
committed
doc fix escape perceived test substitution
build_doc was throwing erros on unesacaped |e and/ |safe.
1 parent a7a03b8 commit f520f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/upgrading.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ Jinja template changes
260260

261261
Auto escaping has been enabled in the jinja template engine, this
262262
means it is no longer necessary to manually escape dynamic strings
263-
with "|e", but strings that should not be escaped need to be marked
264-
with "|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n
263+
with "\|e", but strings that should not be escaped need to be marked
264+
with "\|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n
265265
extension has been enabled and the template has been updated to use
266266
the extension for translatable text instead of explicit "i18n.gettext"
267267
calls:
268268

269269
{% trans %}List of issues{% endtrans %}
270270

271-
instead of
271+
instead of:
272272

273273
{{ i18n.gettext('List of issues')|u }}
274274

0 commit comments

Comments
 (0)