Skip to Content
avatar image
Former Member

Line break in .properties file

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Mar 31, 2016 at 11:54 AM

    Did you try using the unicode character \u000d

    The control your using could also effect this.

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 31, 2016 at 01:30 PM

    i just did a simple test.

    test=hi jun \n how are u.

    I am using sap.m.TextArea

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 31, 2016 at 01:32 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2016 at 12:38 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded