summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2021-05-23 11:19:37 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2021-05-23 11:19:37 +0200
commit30faa6478edbc1e54498b7cbb20111d75a96d2dd (patch)
tree22f88474cb738ca5674d93f2f086228bb90bc244 /tools
parent128ec362547fe11f8b3c6402687a00a06e7f6e51 (diff)
downloadpip-30faa6478edbc1e54498b7cbb20111d75a96d2dd.tar.gz
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...
Diffstat (limited to 'tools')
-rw-r--r--tools/news/template.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/news/template.rst b/tools/news/template.rst
index cff0db4f6..91003f202 100644
--- a/tools/news/template.rst
+++ b/tools/news/template.rst
@@ -1,6 +1,6 @@
{% set underline = "=" %}
-{{ top_line }}
-{{ underline * top_line|length }}
+
+{{ underline * ((top_line)|length) }}
{% for section in sections %}
{% set underline = "-" %}
{% if section %}