Skip to content

Commit

Permalink
[PR #7348/bf9d753e backport][3.9] 🐛 Fix RST in changelog template bef…
Browse files Browse the repository at this point in the history
…ore links (#7350)

**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 <sviat@redhat.com>
  • Loading branch information
patchback[bot] and webknjaz authored Jul 8, 2023
1 parent 64a8daa commit aed1f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGES/.TEMPLATE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit aed1f0e

Please sign in to comment.