mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Removing extra whitespaces
This commit is contained in:
parent
ff3f2b9be7
commit
ff1be9755f
@ -384,6 +384,9 @@ def make_changelog(new_tag, prev_tag, repo, repo_folder, state_file, token, max_
|
||||
# Substitute links to issues
|
||||
changelog = re.sub(r'(?<!\[)#(\d{4,})(?!\])', r'[#\1](https://github.com/{}/issues/\1)'.format(repo), changelog)
|
||||
|
||||
# Remove double whitespaces and trailing whitespaces
|
||||
changelog = re.sub(r' {2,}| +$', r''.format(repo), changelog)
|
||||
|
||||
print(changelog)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user