Skip to content

Commit

Permalink
Fix duplicate top line in NEWS.rst
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
sbidoul committed May 23, 2021
1 parent 128ec36 commit 30faa64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/news/template.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set underline = "=" %}
{{ top_line }}
{{ underline * top_line|length }}

{{ underline * ((top_line)|length) }}
{% for section in sections %}
{% set underline = "-" %}
{% if section %}
Expand Down

0 comments on commit 30faa64

Please sign in to comment.