From 12c239228a00d004a8e6607675e5d63419817a2b Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Dec 2024 17:49:58 +0530 Subject: [PATCH] feat: format email text content --- .../dashboard/components-next/message/bubbles/Email.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Email.vue b/app/javascript/dashboard/components-next/message/bubbles/Email.vue index a61d95d6d..4016b2f52 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Email.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Email.vue @@ -54,7 +54,9 @@ const contentToShow = computed(() => { }); const textToShow = computed(() => { - return props.contentAttributes?.email?.textContent?.full ?? props.content; + const text = + props.contentAttributes?.email?.textContent?.full ?? props.content; + return text.replace(/\n/g, '
'); }); const fromEmail = computed(() => {