_template.rst (939B)
1 {% for section in sections %} 2 {% set underline = "-" %} 3 {% if section %} 4 {{section}} 5 {{ underline * section|length }}{% set underline = "~" %} 6 7 {% endif %} 8 {% if sections[section] %} 9 {% for category, val in definitions.items() if category in sections[section] %} 10 11 {{ definitions[category]['name'] }} 12 {{ underline * definitions[category]['name']|length }} 13 14 {% if definitions[category]['showcontent'] %} 15 {% for text, values in sections[section][category]|dictsort(by='value') %} 16 {% set issue_joiner = joiner(', ') %} 17 - {% for value in values|sort %}{{ issue_joiner() }}`{{ value }} <https://github.com/pytest-dev/pytest/issues/{{ value[1:] }}>`_{% endfor %}: {{ text }} 18 19 20 {% endfor %} 21 {% else %} 22 - {{ sections[section][category]['']|sort|join(', ') }} 23 24 25 {% endif %} 26 {% if sections[section][category]|length == 0 %} 27 28 No significant changes. 29 30 31 {% else %} 32 {% endif %} 33 {% endfor %} 34 {% else %} 35 36 No significant changes. 37 38 39 {% endif %} 40 {% endfor %}