Skip to content

Commit 03a3814

Browse files
TomAugspurgerSeeminSyed
authored andcommitted
DOC: fix announce formtting (pandas-dev#32656)
1 parent d9b123f commit 03a3814

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/sphinxext/announce.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,15 @@ def build_string(revision_range, heading="Contributors"):
122122
components["uline"] = "=" * len(components["heading"])
123123
components["authors"] = "* " + "\n* ".join(components["authors"])
124124

125+
# Don't change this to an fstring. It breaks the formatting.
125126
tpl = textwrap.dedent(
126-
f"""\
127-
{components['heading']}
128-
{components['uline']}
127+
"""\
128+
{heading}
129+
{uline}
129130
130-
{components['author_message']}
131-
{components['authors']}"""
132-
)
131+
{author_message}
132+
{authors}"""
133+
).format(**components)
133134
return tpl
134135

135136

0 commit comments

Comments
 (0)