cancel
Showing results for 
Search instead for 
Did you mean: 

Newline in strings.properties

karthiknalfresc
Champ in-the-making
Champ in-the-making
Hi,
I was trying to add newline character(\n) in strings.properties. It looks like Alfresco ignores the new line.
For eg, my strings.properties looks something like

projectUrl = Project URL \n E.g [some http URL]

Alfresco renders the above property as
Project URL E.g [some http URL]
ignoring the newline character.
I also tried \r and alfresco seems to ignore it too.

If you have got the linebreak to work,can you please help. Thank you.

Thanks
Karthik
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
I suspect it's more likely that HTML is ignoring your line breaks. Try <br> instead if this string is being displayed in an HTML environment.

Mike

karthiknalfresc
Champ in-the-making
Champ in-the-making
Thank you for the reply.
Sorry, i guess i wasnt clear. I was referring to strings.properties in the webform. I am using annotations[alf:label] in my xsd and i define the labels/values in strings.properties. I've added newline character \n in one of the values in strings.properties file.
When i  click create content on the webform, alfresco displays the form to input. It is here that Alfresco ignores the newline character while displaying the values in strings.properties.
I also tried doing the <br/> and it doesnt seem to work.  Smiley Happy Thanks for your help.