[jira] [Commented] (CSV-177) Support trimming leading and trailing blanks

2019-06-16 Thread Sebb (JIRA)


[ 
https://issues.apache.org/jira/browse/CSV-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16865067#comment-16865067
 ] 

Sebb commented on CSV-177:
--

Since found out that withTrim() affects the storage of values in 
CSVParser#addRecordValue

> Support trimming leading and trailing blanks
> 
>
> Key: CSV-177
> URL: https://issues.apache.org/jira/browse/CSV-177
> Project: Commons CSV
>  Issue Type: New Feature
>  Components: Parser, Printer
>Affects Versions: 1.2
>Reporter: Gary Gregory
>Assignee: Gary Gregory
>Priority: Major
> Fix For: 1.3
>
>
> Support trimming leading and trailing blanks in the printer and parser.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CSV-177) Support trimming leading and trailing blanks

2019-06-14 Thread Sebb (JIRA)


[ 
https://issues.apache.org/jira/browse/CSV-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864091#comment-16864091
 ] 

Sebb commented on CSV-177:
--

AFAICT withTrim() only affects the printer, not the parser

> Support trimming leading and trailing blanks
> 
>
> Key: CSV-177
> URL: https://issues.apache.org/jira/browse/CSV-177
> Project: Commons CSV
>  Issue Type: New Feature
>  Components: Parser, Printer
>Affects Versions: 1.2
>Reporter: Gary Gregory
>Assignee: Gary Gregory
>Priority: Major
> Fix For: 1.3
>
>
> Support trimming leading and trailing blanks in the printer and parser.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CSV-177) Support trimming leading and trailing blanks

2016-06-27 Thread Sven Neuhaus (JIRA)

[ 
https://issues.apache.org/jira/browse/CSV-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351033#comment-15351033
 ] 

Sven Neuhaus commented on CSV-177:
--

I was looking for a feature to automatically trim whitespace from values in the 
CSV parser.

There appears to be duplicate funtionality: There's the option withTrim() that 
you implemented and there's withIgnoreSurroundingSpaces() that already existed 
before.

The documentation is unclear regarding the difference between these options. Do 
we really need them both?
>From looking at the source it appears that withIgnoreSurroundingSpaces() only 
>has an effect on the parser whereas withTrim() affects both the parser and the 
>printer.

> Support trimming leading and trailing blanks
> 
>
> Key: CSV-177
> URL: https://issues.apache.org/jira/browse/CSV-177
> Project: Commons CSV
>  Issue Type: New Feature
>  Components: Parser, Printer
>Affects Versions: 1.2
>Reporter: Gary Gregory
>Assignee: Gary Gregory
> Fix For: 1.3
>
>
> Support trimming leading and trailing blanks in the printer and parser.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)