Skip to content

Commit

Permalink
Stop writing title twice when title_format is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Jul 16, 2021
1 parent 5dce0fa commit 0e0f30b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/towncrier/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def append_to_newsfile(
if start_string:
f.write((u"\n\n" + start_string + u"\n").encode("utf8"))

f.write(top_line.encode("utf8"))
f.write(content.encode("utf8"))
if existing_content:
if existing_content[0]:
Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/346.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop writing title twice when ``title_format`` is specified.

0 comments on commit 0e0f30b

Please sign in to comment.