More lines permitted within short description

merge-requests/30/head
Bob Mottram 2023-07-28 14:39:30 +01:00
parent b094b4d6c8
commit 46ae98dca8
1 changed files with 2 additions and 2 deletions

View File

@ -302,11 +302,11 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
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 = ''
# keep the profile description short # keep the profile description short
if len(profile_description_short) > 2048: if len(profile_description_short) > 2048: