diff --git a/Tools/actions_changelogs_since_last_run.py b/Tools/actions_changelogs_since_last_run.py index 3c29a62365f77f..f0a7c717aef6f3 100755 --- a/Tools/actions_changelogs_since_last_run.py +++ b/Tools/actions_changelogs_since_last_run.py @@ -171,7 +171,7 @@ def changelog_entries_to_message_lines(entries: Iterable[ChangelogEntry]) -> lis # if a single line is longer than the limit, it needs to be truncated if len(message) > DISCORD_SPLIT_LIMIT: - message = message[: DISCORD_SPLIT_LIMIT - 100] + " [...]" + message = message[: DISCORD_SPLIT_LIMIT - 100].rstrip() + " [...]" if url is not None: line = f"{emoji} - {message} [PR]({url}) \n"