Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add space at the end of property value

label.my.answer=My Answer

I would like to add spaces deliberately at the end of the above key (e.g. I would like to have 2 spaces at the end "My Answer ")

Currently the java.util.ResourceBundle functionality kind of trims this piece of code while retrieving the value

like image 624
Joe Avatar asked Jun 04 '11 06:06

Joe


2 Answers

label.myAnswer = My Answer\u0020\u0020 

Note: identifiers with dots usually represent a hierarchy of names, and my is not a hierarchy level. You would certainly not define a Java class or a Java package of that name, would you?

like image 139
Roland Illig Avatar answered Oct 07 '22 14:10

Roland Illig


Also

label.myAnswer = My Answer\ \ 
like image 22
Barett Avatar answered Oct 07 '22 14:10

Barett