Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74ae997

Browse files
authored
🔧 fix(towncrier): match docstrfmt RST formatting expectations (#1002)
1 parent 3786929 commit 74ae997

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/changelog/template.jinja2‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
{% set section_entries = sections[section] %}
1010
{% if section_entries %}
1111
{% for category, entries in section_entries.items() if entries %}
12-
{{ definitions[category]['name'] }}
13-
{{ underlines[0] * definitions[category]['name']|length }}
12+
{{ underlines[0] * (definitions[category]['name']|length + 2) }}
13+
{{ definitions[category]['name'] }}
14+
{{ underlines[0] * (definitions[category]['name']|length + 2) }}
1415

1516
{% if definitions[category]['showcontent'] %}
1617
{% for text, values in entries.items() %}

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ title_format = false
230230
issue_format = ":issue:`{issue}`"
231231
template = "docs/changelog/template.jinja2"
232232
underlines = ["*", "=", "-"]
233+
top_underline = "#"
233234

234235
[[tool.towncrier.section]]
235236
path = ""

0 commit comments

Comments
 (0)