Results 1 to 4 of 4

Thread: How to preserve white spaces at the beginning of property?

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    14

    Question How to preserve white spaces at the beginning of property?

    Hello,

    If I put some spaces at the beginning of the property value, it is ignored by PropertiesParser (I suppose).

    Code:
    <object class="com.example.SomeClass">
    	<property name="someProperty" value="       some value beginning with spaces"/>
    </object>
    How to preserve those white spaces while parsing the config file ?

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default

    I donīt think this is supported right now. Please add a JIRA feature request ticket and weīll try to add it:

    https://jira.springsource.org/browse...ACTIONSCRIPTAS

    cheers,

    Roland

  3. #3
    Join Date
    Sep 2009
    Posts
    14

    Default

    Quote Originally Posted by 666shooter View Post
    I donīt think this is supported right now. Please add a JIRA feature request ticket and weīll try to add it:

    https://jira.springsource.org/browse...ACTIONSCRIPTAS

    cheers,

    Roland
    I added it as a bug which i think it is as AS String properties and XML attributes support spaces at the beginning. The issue is in the PropertiesParser which does not preserve the white spaces, right?

    SESPRINGACTIONSCRIPTAS-134

  4. #4
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default

    The issue is in the PropertiesParser which does not preserve the white spaces, right?
    could be, that is rather old code so I donīt know it by heart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •