From a4bf0e8b3681fe13218d2a5edf49a608c48b7af0 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 8 Jul 2023 12:57:05 +0000 Subject: [PATCH] =?UTF-8?q?[PR=20#7348/bf9d753e=20backport][3.8]=20?= =?UTF-8?q?=F0=9F=90=9B=20Fix=20RST=20in=20changelog=20template=20before?= =?UTF-8?q?=20links=20(#7349)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **This is a backport of PR #7348 as merged into master (bf9d753edc928e7ecbc590c32603ebd3c1fc6282).** 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. Co-authored-by: Sviatoslav Sydorenko --- 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 %}