Fix duplicate top line in NEWS.rst

It looks like towncrier unconditionally writes top_line
when it is defined in the title_format configuration.
So we must not repeat it in the template.
When running towncrier with --draft, it works differently
so in that case the top line is not shown...
This commit is contained in:
Stéphane Bidoul 2021-05-23 11:19:37 +02:00
parent 128ec36254
commit 30faa6478e
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{% set underline = "=" %}
{{ top_line }}
{{ underline * top_line|length }}
{{ underline * ((top_line)|length) }}
{% for section in sections %}
{% set underline = "-" %}
{% if section %}