Info Message from description with Line breaks

kapilm
Kilo Contributor

I have a requirement, where I need to show the value from an description field with line breaks as an info message..

for eg:

Description:

Type: String

First Line

Second line

third line

So in info message it should retain the same format, like

First Line

Second line

third line

But, actually it is showing like this "First line second line third line"

Thanks in Advance..

10 REPLIES 10

Chaithanya10
Tera Contributor

Hello,

 

you can use "<br\>" to make it in next line.

 

Ex message: "First line.Second line"

 

you should enter the string as "First line.<br\> <br\>second line"

 

output:

First line

Second Line

 

 

Note:Please accept the sution if it works for you.