Skip to content

Commit

Permalink
🐛 Fix RST in changelog template before links
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
webknjaz committed Jul 8, 2023
1 parent fb7a0a1 commit 9cfdf35
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 9cfdf35

Please sign in to comment.