[ 
https://issues.apache.org/jira/browse/CONFIGURATION-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595671#action_12595671
 ] 

Emmanuel Bourg commented on CONFIGURATION-324:
----------------------------------------------

The parser for properties files can't be reused as is unfortunately, there are 
several differences between the two formats, values can be quoted in an INI 
file for example, and it's also possible to put a comment after the value.

I wonder how we should handle line continuations combined with end of line 
comments. I guess we should support this:

{code}
foo = bar \ ; comment
      baz
{code}

but not this:

{code}
foo = bar ; comment \
      baz
{code}

> INIConfiguration does not support line continuation
> ---------------------------------------------------
>
>                 Key: CONFIGURATION-324
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-324
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Documentation, Format
>    Affects Versions: 1.5
>            Reporter: Charles Honton
>            Priority: Minor
>
> INIConfiguration does not support line continuation.  See 
> http://en.wikipedia.org/wiki/INI_file#Escapes for a description.  Using 
> INIConfiguration to read the following file:
> [section1]
> dotted.var1 = \
>       foo
> var2 = doodle
> Produces the following contents:
>     section1.dotted.var1= \
>     section1.foo= 
> I expected the following contents:
>     section1.dotted.var1= foo

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

Reply via email to