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
1 changed files with 4 additions and 2 deletions

View File

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