More lines permitted within short description

main
Bob Mottram 2023-07-28 14:40:57 +01:00
parent 46ae98dca8
commit 83c15af66f
1 changed files with 2 additions and 2 deletions

View File

@ -1071,11 +1071,11 @@ def html_profile(signing_priv_key_pem: str,
profile_description_short = profile_description
if '\n' in profile_description:
if len(profile_description.split('\n')) > 2:
if len(profile_description.split('\n')) > 4:
profile_description_short = ''
else:
if '<br>' in profile_description:
if len(profile_description.split('<br>')) > 2:
if len(profile_description.split('<br>')) > 4:
profile_description_short = ''
profile_description = profile_description.replace('<br>', '\n')
# keep the profile description short