Merge pull request #16557 from abyss7/fix-make_changelog

Fix make_changelog.py
This commit is contained in:
alexey-milovidov 2020-11-04 01:37:57 +03:00 committed by GitHub
commit 038da31204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ def process_unknown_commits(commits, commits_info, users):
# Returns False if the PR should not be mentioned changelog.
def parse_one_pull_request(item):
description = item['description']
lines = [line for line in [x.strip() for x in description.split('\n') if description else []] if line]
lines = [line for line in [x.strip() for x in description.split('\n')] if line] if description else []
lines = [re.sub(r'\s+', ' ', l) for l in lines]
cat_pos = None