Skip to content

Commit

Permalink
Merge pull request #2654 from webknjaz/docs/modern-towncrier
Browse files Browse the repository at this point in the history
Make changelog tmpl compatible w/ new Towncrier
  • Loading branch information
jaraco committed Apr 25, 2021
2 parents 00df794 + f070bcf commit 0726e38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/2654.misc.rst
@@ -0,0 +1,2 @@
Made the changelog generator compatible
with Towncrier >= 19.9 -- :user:`webknjaz`
4 changes: 4 additions & 0 deletions towncrier_template.rst
@@ -1,3 +1,7 @@
{% if top_line %}
{{ top_line }}
{{ top_underline * ((top_line)|length)}}
{% endif %}
{% for section, _ in sections.items() %}
{% set underline = underlines[0] %}{% if section %}{{section}}
{{ underline * section|length }}
Expand Down

0 comments on commit 0726e38

Please sign in to comment.