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,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 %}
|
||||||
|
|
Loading…
Reference in a new issue