Default to space

merge-requests/30/head
Bob Mottram 2020-06-28 10:35:57 +01:00
parent da0c0b7e6e
commit b3597e19a6
1 changed files with 3 additions and 2 deletions

View File

@ -6074,7 +6074,7 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
if len(profileDescriptionShort) > 256:
profileDescriptionShort = ''
# remove formatting from profile description used on title
avatarDescription = ''
avatarDescription = ' '
if profileJson.get('summary'):
if isinstance(profileJson['summary'], str):
avatarDescription = profileJson['summary'].replace('<br>', '\n')
@ -6082,6 +6082,7 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
avatarDescription = avatarDescription.replace('</p>', '')
profileStr = ' <div class="hero-image">'
profileStr += ' <div class="hero-text">'
print('avatarDescription: ' + str(avatarDescription))
profileStr += \
' <img loading="lazy" src="' + avatarUrl + \
'" alt="' + avatarDescription + '" title="' + \