diff --git a/bin/scripts/update-all-contributors-website.py b/bin/scripts/update-all-contributors-website.py index 34c676606..a1840892e 100755 --- a/bin/scripts/update-all-contributors-website.py +++ b/bin/scripts/update-all-contributors-website.py @@ -26,8 +26,13 @@ cC_end = contributorContents.rfind(ending_text) + len(ending_text) transformedContributorContents = contributorContents[cC_start:cC_end] -print('* improving table') +print('* replacing table') transformedContributorContents = transformedContributorContents.replace('', '', transformedContributorContents, flags=re.IGNORECASE) +transformedContributorContents = re.sub(' *', '', transformedContributorContents, flags=re.IGNORECASE) +transformedContributorContents = re.sub(' *', '', transformedContributorContents, flags=re.IGNORECASE) +transformedContributorContents = re.sub(' *', '', transformedContributorContents, flags=re.IGNORECASE) +transformedContributorContents = re.sub(' *]*>', '', transformedContributorContents, flags=re.IGNORECASE) print('* final out') webContributorContents = (webContributorContents[:wCC_start]