From 3603b28cba984bcf37e2299475a27c8f2a9d1bd9 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 21 Apr 2021 16:49:34 +0200 Subject: [PATCH] Make changelog tmpl compatible w/ new towncrier Ref: https://github.com/pypa/pip/issues/9815 --- towncrier_template.rst | 4 ++++ 1 file changed, 4 insertions(+) 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 }}