1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Render top_line explicitly in towncrier template

This allows sphinxcontrib-towncrier to render it in the documentation.
The rendering of NEWS.rst is unchanged since Towncrier detects
automatically if that line exists and does not render a duplicated
section title.
This commit is contained in:
Tzu-ping Chung 2021-04-15 07:21:24 +08:00
parent df84d1ce62
commit a79c6267de

View file

@ -1,7 +1,9 @@
{% for section in sections %} {{ top_line -}}
{%- for section in sections %}
{% set underline = "-" %} {% set underline = "-" %}
{% if section %} {% if section %}
{{section}} {{ section }}
{{ underline * section|length }}{% set underline = "~" %} {{ underline * section|length }}{% set underline = "~" %}
{% endif %} {% endif %}