mirror of https://gitlab.com/bashrc2/epicyon
More lines permitted within short description
parent
46ae98dca8
commit
83c15af66f
|
@ -1071,11 +1071,11 @@ def html_profile(signing_priv_key_pem: str,
|
||||||
|
|
||||||
profile_description_short = profile_description
|
profile_description_short = profile_description
|
||||||
if '\n' in profile_description:
|
if '\n' in profile_description:
|
||||||
if len(profile_description.split('\n')) > 2:
|
if len(profile_description.split('\n')) > 4:
|
||||||
profile_description_short = ''
|
profile_description_short = ''
|
||||||
else:
|
else:
|
||||||
if '<br>' in profile_description:
|
if '<br>' in profile_description:
|
||||||
if len(profile_description.split('<br>')) > 2:
|
if len(profile_description.split('<br>')) > 4:
|
||||||
profile_description_short = ''
|
profile_description_short = ''
|
||||||
profile_description = profile_description.replace('<br>', '\n')
|
profile_description = profile_description.replace('<br>', '\n')
|
||||||
# keep the profile description short
|
# keep the profile description short
|
||||||
|
|
Loading…
Reference in New Issue