diff --git a/webapp_post.py b/webapp_post.py index e419e45a9..d449a1f1a 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -3214,9 +3214,11 @@ def individual_post_as_html(signing_priv_key_pem: str, map_addr_str = '' if '
' in location_str: # append the address after the map + addrstr = location_str.split('
')[1] + if '
' in addrstr: + addrstr = addrstr.split('
')[0] map_addr_str = \ - '

' + \ - location_str.split('
')[1] + '\n' + '

' + addrstr + '\n' map_str = '
\n' + map_str + \ map_addr_str + '
\n' attrib = None @@ -3259,12 +3261,12 @@ def individual_post_as_html(signing_priv_key_pem: str, category_text = 'Category' if translate.get('Category'): category_text = translate['Category'] - map_str = '

' + category_text + ': ' + \ + map_str += '

' + category_text + ': ' + \ category_str + '

\n' locn_text = 'Location' if translate.get('Location'): locn_text = translate['Location'] - map_str = '

' + locn_text + ': ' + \ + map_str += '

' + locn_text + ': ' + \ location_str + '

\n' if is_muted: