From a78dcd7fdbbbbec221ff73817cdcf4295dfc9e3b Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 1 Nov 2023 16:54:38 +0100 Subject: [PATCH] Improve created Contributors web-page [why] When viewed on a small screens the contributors page on the gh-pages looks not very nice and overflows. [how] Instead of a table with a predefined number of rows we just use blocks in an inline context that allows the line break to adjust to the available width. Fixes: #1399 Reported-by: Vitthal Gund <@VitthalGund> Signed-off-by: Fini Jastrow --- bin/scripts/update-all-contributors-website.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]