Text wrapping not working in email layout

SatheeshKumar
Kilo Sage

Hi ,

I am facing an issue in text wrapping  in email notifications.

${description}

${mail_script:summaryvalues}

Issue:

we used email script to add values in notification.

when we get a  long string (without any spaces in summary values ) in our email scripts.

Ex:2424jbk4j2k45b2j35k4j5keeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

it breaks  all lines of email and make the content overflow outside the layout.(without wrapping)

 

but when we removed "summaryvalues script " the remaining lines are wrapped correctly and stays inside the layout.

 

As per my analysis the issue is happening  only when we have a  lengthy string without any spaces.

 

If the string has any spaces it is working Correctly.

 

To prevent this i tried the below ways but nothing helped:

1.Tried adding styles in layout to wrap text, but the styles were commented whenever we save the layout.

2.Tried adding inline styles in email script but it not helped.

 

if anybody faced the same issue, please share your suggestions and fixes if any

 

Thanks in Advance,

Satheesh

1 REPLY 1

Brent Llewellyn
Mega Guru

Hey Satheesh,

Without seeing your code its hard to completely understand the issue but it sounds like you may want to add "word-wrap: break-word" to the style of the element that contains the long string.