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

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

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 %}