[ 
https://issues.apache.org/jira/browse/CONFIGURATION-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Bourg updated CONFIGURATION-269:
-----------------------------------------

    Attachment: properties.patch

Here is the patch I have in mind :

- If the list delimiter is disabled, forcing single lines has no effect, and 
the list properties are written on several lines. It doesn't make sense to 
disable the delimiter and expect list properties to be saved on a single line. 
If the user really wants single line properties to remain compatible with the 
standard Properties format, he has to enable the delimiter and change it to 
something else, like the pipe character.

- PropertiesWriter doesn't escape the delimiter if the delimiter is null. This 
is a simple change that avoid adding a state to PropertiesWriter (delimiter 
enabled/disabled) or a reference to the parent configuration.


> PropertiesConfiguration.save() generates superfluous escaping character when 
> delimiter parsing is disabled
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-269
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-269
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Oliver Heger
>         Assigned To: Oliver Heger
>             Fix For: 1.5
>
>         Attachments: properties.patch
>
>
> PropertiesConfiguration.save() ignores the delimiter parsing disabled flag 
> and escapes all delimiter characters it encounters. When the configuration is 
> loaded again (with delimiter parsing disabled) the values of affected 
> properties contain the escaping character.
> This bug is very similar to CONFIGURATION-268, but for 
> PropertiesConfiguration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to