Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Where to split a text?

Avatar

Level 1


I have long text strings 150plus chars. That go in one text field. I need them to split at the end of the line but LC is splitting them where it finds a symbol (ex. + or /). Is it posible to define a fixed lenght where to split.

What I get is:

czVqjBqrrgNOKUCLI4B8UbX6f7s4ciK6toTH2g5CXutWalb7FSY5wE9CmAw2lAW3/Gd61jQ9tXws

+vY4UgTN5Lejv3L5mck7aex6nNO/dqWfytZQ1P

+I9qTPtamBg8YqPUKpPlEanmFDUIM2UUjp2mUSBF4PmdmXh6oXka7bb9g

What I would like to have is:

czVqjBqrrgNOKUCLI4B8UbX6f7s4ciK6toTH2g5CXutWalb7FSY5wE9CmAw2lAW3/Gd61jQ9tXws+vY4Ug

TN5Lejv3L5mck7aex6nNO/dqWfytZQ1P+I9qTPtamBg8YqPUKpPlEanmFDUIM2UUjp2mUSBF4PmdmXh

6oXka7bb9g

Thank you

0 Replies