diff --git a/changelog.d/2654.misc.rst b/changelog.d/2654.misc.rst new file mode 100644 index 0000000000..268c4a2e46 --- /dev/null +++ b/changelog.d/2654.misc.rst @@ -0,0 +1,2 @@ +Made the changelog generator compatible +with Towncrier >= 19.9 -- :user:`webknjaz` diff --git a/towncrier_template.rst b/towncrier_template.rst index 31098b7cf6..7f507342d7 100644 --- a/towncrier_template.rst +++ b/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 }}