question

Lydia Freitas avatar image
1 Like"
Lydia Freitas asked Jason Lightfoot edited

How to put new lines in text ?

I created a button on the Dashboard . The goal is that when the button is clicked, a text message appears. But the text appears without paragraphs.

Is there any command to solve this?

Choose One
textmessagenewlinecarriage return
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image
3 Likes"
Steven Hamoen answered Lydia Freitas commented

I'm not sure what you mean by paragraphs, but if you mean you want to start you text on a new line try adding \n or \r to your string. It stands for a new line or return. So this code:

msg( "test", "line1\r\rline2" );

will give your 3 lines, line1, an empty line and line2

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lydia Freitas avatar image Lydia Freitas commented ·

Sorry, I don't speak English very well, I may have expressed myself wrong. But that's exactly what I meant, new lines! Thank you so much for your answer, this code solved!

0 Likes 0 ·
Loubna E avatar image
0 Likes"
Loubna E answered

Is it not possible to do it automatically, for example I write a paragraph and it adapts to the size of the placement

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.