Revision history [back]

click to hide/show revision 1
initial version

asked 2020-11-20 10:29:36 +0800

54patman gravatar image 54patman

starting or trailing white space in zk-label.properties

I'm almost embarrassed to ask this question but how do I get extra white spaces in the language (Labels) properties file, starting and trailing.

In zk-label.properties I basically have

my.key=  value

which I want 2 spaces before and after

my.key=<SPACE><SPACE>value<SPACE><SPACE>

when loaded it trims the spaces and all I get is the value.

I have tried:

\u0020
\\u0020
<br> 
&nbsp; 
\ \

Nothing, the loader simply loads the string as is.

Looking at the code Maps.load(Map, InputStream, String, boolean) it simply calls Strings.skipWhitespaces() or Strings.skipWhitespacesBackward() but never tries to resolve the unicode or anthing.

What am I missing?

Thanks in advance

starting or trailing white space in zk-label.properties

I'm almost embarrassed to ask this question but how do I get extra white spaces in the language (Labels) properties file, starting and trailing.

In zk-label.properties I basically have

my.key=  value

which I want 2 spaces before and after

my.key=<SPACE><SPACE>value<SPACE><SPACE>

when loaded it trims the spaces and all I get is the value.

I have tried:

\u0020
\\u0020
<br> 
&nbsp; 
& n b s p ; (none breaking space)
\ \

Nothing, the loader simply loads the string as is.

Looking at the code Maps.load(Map, InputStream, String, boolean) it simply calls Strings.skipWhitespaces() or Strings.skipWhitespacesBackward() but never tries to resolve the unicode or anthing.

What am I missing?

Thanks in advance

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More