From f67bec218e8d00b193856140d4f6adaa6441d08f Mon Sep 17 00:00:00 2001 From: smueller Date: Tue, 7 Jul 2026 16:05:23 +0200 Subject: [PATCH] Refactor contact information presentation in newsletter templates - Updated the plain text and HTML formats to enhance the phrasing of contact information. - Adjusted styling and layout for better readability and consistency across different email clients. - Improved the structure of the contact section in the Outlook HTML format for a cleaner appearance. --- app/services/newsletter.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/services/newsletter.py b/app/services/newsletter.py index d14fd37..0757809 100644 --- a/app/services/newsletter.py +++ b/app/services/newsletter.py @@ -276,7 +276,7 @@ def create_plain_text( def _plain_contact_line(contact_email: str) -> list[str]: if contact_email.strip(): return [ - f"Fragen oder ein Themenwunsch? E-Mail an das Wiki-Team: {contact_email.strip()}", + f"Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team ({contact_email.strip()}).", "", ] return ["Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team.", ""] @@ -349,15 +349,15 @@ def create_html( if contact_email.strip(): ce = escape(contact_email.strip()) contact_html = ( - f'Fragen oder ein Themenwunsch? Meldet euch gern beim ' - f'Wiki-Team.' + f'Fragen oder ein Themenwunsch? ' + f'Meldet euch gern beim Wiki-Team.' ) else: contact_html = "Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team." contact_section = ( - f'' - f'

{contact_html}

' + f'' + f'

{contact_html}

' f"" ) @@ -756,14 +756,15 @@ def create_outlook_html( if contact_email.strip(): contact_block = ( - f'

' - f'{_outlook_font("Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team: ", size="1")}' - f'{_outlook_link(contact_email.strip(), f"mailto:{contact_email.strip()}", color=OUTLOOK_ORANGE, bold=False)}' + f'

' + f'{_outlook_font("Fragen oder ein Themenwunsch? ", size="1")}' + f'{_outlook_link("Meldet euch gern beim Wiki-Team", f"mailto:{contact_email.strip()}", color=OUTLOOK_ORANGE, bold=False, size="1")}' + f'{_outlook_font(".", size="1")}' f"

" ) else: contact_block = ( - f'

' + f'

' f'{_outlook_font("Fragen oder ein Themenwunsch? Meldet euch gern beim Wiki-Team.", size="1")}' f"

" )