2544
Views
4
Comments
Newline character issue.
Question
Hi !

How am I supposed to give a new line chcrater in x.y expression editor.

I have tried as follows:

"first sentence" + "\n" + "second sentence".

"first sentence" + "\\n" + "second sentence". 

But, neither of them worked.

Any hints ?

Thanks!
2011-06-15 10-51-32
Pedro Filipe Manuel
Staff
Hi Nikhil,

You can use the builtin function newline():

"first sentence"+newline()+"second sentence"


Thanks,

Pedro
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hello Nikhil,

Just wanted to add a little detail, which is the need to set the expression "Escape Content" property value to "True", so that all markup sensitive characters can be translated into a web safe format.

Best Regards,
G.Martins
2018-06-01 14-37-59
Rebecca Hall
If the Escape Content property is True, then you can use html such as "<br>" in the text for line breaks.
2012-08-13 13-29-53
Nikhil Shravage
Thanks Rebecca Hall, Gonçalo Martins,  Pedro Filipe Manuel !!
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.