comparison 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
comparison
equal deleted inserted replaced
6127:80915fd9ad24 6128:c75d0f27a10a
258 Jinja template changes 258 Jinja template changes
259 ---------------------- 259 ----------------------
260 260
261 Auto escaping has been enabled in the jinja template engine, this 261 Auto escaping has been enabled in the jinja template engine, this
262 means it is no longer necessary to manually escape dynamic strings 262 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 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 264 with "\|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n
265 extension has been enabled and the template has been updated to use 265 extension has been enabled and the template has been updated to use
266 the extension for translatable text instead of explicit "i18n.gettext" 266 the extension for translatable text instead of explicit "i18n.gettext"
267 calls: 267 calls:
268 268
269 {% trans %}List of issues{% endtrans %} 269 {% trans %}List of issues{% endtrans %}
270 270
271 instead of 271 instead of:
272 272
273 {{ i18n.gettext('List of issues')|u }} 273 {{ i18n.gettext('List of issues')|u }}
274 274
275 The jinja template has been upgraded to use bootstrap 4.1.3 (from 275 The jinja template has been upgraded to use bootstrap 4.1.3 (from
276 2.2.2). You can diff/merge changes into your jinja template based 276 2.2.2). You can diff/merge changes into your jinja template based

Roundup Issue Tracker: http://roundup-tracker.org/