cancel
Showing results for 
Search instead for 
Did you mean: 

Line break in .properties file

bjorn-henrik_zink
Active Participant
0 Kudos

Hi,

can anyone help me how to add a line break in a .properties file property? After investigating a bit on the web, I have tried \n \\n <br> </br> <br/>, but none of them work. 

More specifically, I am writing a help text for my application and need several paragraphs of text. Instead of creating a property for each paragraph I would like to use line break.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

Did you try using the unicode character \u000d

The control your using could also effect this.

Regards,

Jamie

SAP - Technology RIG

Answers (3)

Answers (3)

bjorn-henrik_zink
Active Participant
0 Kudos

Hi Jamie and Jun,

but of course, you are both right, it was the type of control that did the trick. Using a proper control - like for example Text - \n worked just fine.

Thanks to you both for swift replies!

junwu
Active Contributor
0 Kudos

for long paragraph, just use \ at the end of the line.

junwu
Active Contributor
0 Kudos

i just did a simple test.

test=hi jun \n how are u.

I am using sap.m.TextArea