File: towncrier_template.rst

package info (click to toggle)
python-prance 25.4.8.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,144 kB
  • sloc: python: 3,381; makefile: 205
file content (24 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{%- for section, _ in sections.items() %}
{%-  set underline = underlines[0] %}
{%-  if section %}{{section}}
{{     underline * section|length }}
{%-   endif %}
{%-   if sections[section] %}
{%-     for category, val in definitions.items() if category in sections[section] %}
{%-       if definitions[category]['showcontent'] %}
{%           for text, values in sections[section][category].items() %}
* {{ values|join(', ') }}: {{ text }}

{%           endfor %}
{%        else %}
* Miscellaneous: {{ sections[section][category]['']|join(', ') }}

{%        endif %}
{%-       if sections[section][category]|length == 0 %}
No significant changes.
{%-       endif %}
{%-     endfor %}
{%-   else %}
No significant changes.
{%-   endif %}
{%- endfor %}