Address prefix

main
Bob Mottram 2025-04-26 14:15:51 +01:00
parent d0bdd7a55c
commit 8b4873dc01
1 changed files with 5 additions and 0 deletions

View File

@ -3236,6 +3236,11 @@ def individual_post_as_html(signing_priv_key_pem: str,
map_latitude, map_longitude,
map_zoom)
if not map_str and location_str:
if '<br><address>' in location_str:
address_prefix = \
'<br>' + translate['Address'] + ':<br><address>'
location_str = \
location_str.replace('<br><address>', address_prefix)
map_str = '<p>' + translate['Location'] + ': ' + \
location_str + '</p>\n'