Skip to content

Commit

Permalink
modified: .github/actions/recent-posts/main.py
Browse files Browse the repository at this point in the history
	- Removed last new line character as it's not needed.
  • Loading branch information
it176131 committed Jan 3, 2025
1 parent ac4afba commit 389dd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/recent-posts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main(
repl = (
f"- [{model.entry.title}]({model.entry.link}) by {model.entry.author}"
)
new_text = re.sub(pattern=pattern, repl=f"\n{repl}\n", string=text)
new_text = re.sub(pattern=pattern, repl=f"\n{repl}", string=text)
with readme.open(mode="w") as f:
f.write(new_text)

Expand Down

0 comments on commit 389dd25

Please sign in to comment.