From 0150f19cd91553f79dcce592017cbe0219e50886 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 16:06:22 +0100 Subject: [PATCH] Replace formatting in profile description --- webinterface.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 224439d6..6f60ed4f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1260,10 +1260,13 @@ def htmlProfile(translate: {},projectVersion: str, \ if len(profileDescription.split('
'))>2: profileDescriptionShort='' profileDescription=profileDescription.replace('
','\n') + avatarDescription='' + if profileJson.get('summary'): + avatarDescription=profileJson['summary'].replace('
','\n').replace('

','').replace('

','') profileHeaderStr= \ '
' \ '
'+ \ - ' '+profileDescription+'' \ + ' '+avatarDescription+'' \ '

'+displayName+'

' \ '

@'+nickname+'@'+domainFull+'

' \ '

'+profileDescriptionShort+'

'+ \ @@ -3230,11 +3233,13 @@ def htmlProfileAfterSearch(translate: {}, \ if '
' in profileDescription: if len(profileDescription.split('
'))>2: profileDescriptionShort='' - profileDescription=profileDescription.replace('
','\n') + avatarDescription='' + if profileJson.get('summary'): + avatarDescription=profileJson['summary'].replace('
','\n').replace('

','').replace('

','') profileStr= \ '
' \ '
' \ - ' '+profileDescription+'' \ + ' '+avatarDescription+'' \ '

'+displayName+'

' \ '

@'+searchNickname+'@'+searchDomainFull+'

' \ '

'+profileDescriptionShort+'

'+ \