Skip to content

Commit a4bf0e8

Browse files
[PR #7348/bf9d753e backport][3.8] 🐛 Fix RST in changelog template before links (#7349)
**This is a backport of PR #7348 as merged into master (bf9d753).** 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 <[email protected]>
1 parent 9a41831 commit a4bf0e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CHANGES/.TEMPLATE.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
{% if definitions[category]['showcontent'] %}
1414
{% for text, values in sections[section][category].items() %}
15-
- {{ text }}
16-
{{ values|join(',\n ') }}
15+
- {{ text + '\n' }}
16+
{{ values|join(',\n ') + '\n' }}
1717
{% endfor %}
1818

1919
{% else %}

0 commit comments

Comments
 (0)