You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2012/03/23 12:36:04 UTC

[CSV] trimming spaces - are both leading/trailing required?

Do we really need to support independent leading/trailing spaces?

I've been unable to find any reference to formats that require this.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [CSV] trimming spaces - are both leading/trailing required?

Posted by Simone Tripodi <si...@apache.org>.
sounds reasonable indeed, let users chose the preferred behavior.
FWIW, +1 as well :)
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sat, Mar 24, 2012 at 10:27 PM, Emmanuel Bourg <eb...@apache.org> wrote:
> +1 for a single parameter controlling the trimming of the values (quoted or
> not).
>
> Emmanuel Bourg
>
>
> Le 23/03/2012 12:36, sebb a écrit :
>
>> Do we really need to support independent leading/trailing spaces?
>>
>> I've been unable to find any reference to formats that require this.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [CSV] trimming spaces - are both leading/trailing required?

Posted by Emmanuel Bourg <eb...@apache.org>.
+1 for a single parameter controlling the trimming of the values (quoted 
or not).

Emmanuel Bourg


Le 23/03/2012 12:36, sebb a écrit :
> Do we really need to support independent leading/trailing spaces?
>
> I've been unable to find any reference to formats that require this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [CSV] trimming spaces - are both leading/trailing required?

Posted by sebb <se...@gmail.com>.
On 23 March 2012 11:50, Simone Tripodi <si...@apache.org> wrote:
> I agree with you!
> spaces maybe are intentionally there, or not?
> best,

Some formats allow spaces either side of a delimiter (or line), some don't.

What I'm suggesting is having a single option to either keep spaces or
to strip spaces.

At present there are separate leading and trailing trimming options,
which I think is unnecessary.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [CSV] trimming spaces - are both leading/trailing required?

Posted by Simone Tripodi <si...@apache.org>.
I agree with you!
spaces maybe are intentionally there, or not?
best,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Fri, Mar 23, 2012 at 12:36 PM, sebb <se...@gmail.com> wrote:
> Do we really need to support independent leading/trailing spaces?
>
> I've been unable to find any reference to formats that require this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org