From 9cfdf35921d41bc718cfdbb7f187d1ecd9aa7b98 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sat, 8 Jul 2023 09:33:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20RST=20in=20changelog=20tem?= =?UTF-8?q?plate=20before=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In corner cases, changelog fragments with things like detached link definitions (example: #7346) cause RST rendering errors. This patch corrects this by injecting empty lines between the changelog entry bodies and their reference lists. --- CHANGES/.TEMPLATE.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES/.TEMPLATE.rst b/CHANGES/.TEMPLATE.rst index bc6016baf5c..a27a1994b53 100644 --- a/CHANGES/.TEMPLATE.rst +++ b/CHANGES/.TEMPLATE.rst @@ -12,8 +12,8 @@ {% if definitions[category]['showcontent'] %} {% for text, values in sections[section][category].items() %} -- {{ text }} - {{ values|join(',\n ') }} +- {{ text + '\n' }} + {{ values|join(',\n ') + '\n' }} {% endfor %} {% else %}