From ebb70e5d5f0384145cffe0c54ef9affb58076ea6 Mon Sep 17 00:00:00 2001 From: Jefferson Bledsoe Date: Tue, 9 Jan 2024 14:56:30 +0000 Subject: [PATCH] Improve compatibility for inline alignment of table cells with various email clients (#43) * Inline alignment to improve compatibility with various email clients * Fix tests --- .../formsupport/browser/send_mail_template_table.pt | 11 +++++++---- .../volto/formsupport/tests/test_send_action_form.py | 12 ++++++------ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/collective/volto/formsupport/browser/send_mail_template_table.pt b/src/collective/volto/formsupport/browser/send_mail_template_table.pt index ac358390..ac1ced69 100644 --- a/src/collective/volto/formsupport/browser/send_mail_template_table.pt +++ b/src/collective/volto/formsupport/browser/send_mail_template_table.pt @@ -12,9 +12,11 @@ Form submission data for ${title} - Field - Value @@ -23,9 +25,10 @@ - ${label} - ${value} + ${value} diff --git a/src/collective/volto/formsupport/tests/test_send_action_form.py b/src/collective/volto/formsupport/tests/test_send_action_form.py index 98469242..010147a7 100644 --- a/src/collective/volto/formsupport/tests/test_send_action_form.py +++ b/src/collective/volto/formsupport/tests/test_send_action_form.py @@ -743,8 +743,8 @@ def test_email_body_formated_as_table( self.assertIn( """ - Field - Value + Field + Value """, msg, @@ -752,16 +752,16 @@ def test_email_body_formated_as_table( self.assertIn( """ - Name""", + Name""", msg, ) - self.assertIn(f"{name}", msg) + self.assertIn(f'{name}', msg) self.assertIn( """ - """, + """, msg, ) - self.assertIn(f"{message}", msg) + self.assertIn(f'{message}', msg) def test_email_body_formated_as_list( self,