truncating the sentence upto certain characters

Hi @Ranjit & @bruno29a

@bruno29a thanks for posting a solution for this challenging problem. I didn’t realize it was about wrapping text into multiple rows but going through your so nice explanation made me to notice it is the case.

Complementary to your solution @bruno29a, I remember I posted a while ago a solution for a very similar problem. Maybe it could help with little adaptation too :wink:

I’m truncating up to 1000 characters but you can adapt it to whatever the size. The interest of this approach is that it preserves the words without cutting them in half.

Hope it helps too.

Best

Ael