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:
parent
df84d1ce62
commit
a79c6267de
1 changed files with 4 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue