[ 
https://issues.apache.org/jira/browse/CSV-265?focusedWorklogId=624704&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-624704
 ]

ASF GitHub Bot logged work on CSV-265:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Jul/21 23:06
            Start Date: 19/Jul/21 23:06
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #120:
URL: https://github.com/apache/commons-csv/pull/120#issuecomment-718114531


   
   [![Coverage 
Status](https://coveralls.io/builds/41488452/badge)](https://coveralls.io/builds/41488452)
   
   Coverage increased (+0.01%) to 98.323% when pulling 
**69d3de8e20e06553ec7df75732d8b483c0beba41 on king-tyler:CSV-265** into 
**27843d8dc0ec6e5af910674bfb4cba4e48b2475b on apache:master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 624704)
    Time Spent: 2.5h  (was: 2h 20m)

> CSV comments break CSVRecord#getCharacterPosition
> -------------------------------------------------
>
>                 Key: CSV-265
>                 URL: https://issues.apache.org/jira/browse/CSV-265
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.8
>            Reporter: Tyler King
>            Priority: Major
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> The CSVRecord#getCharacterPosition method returns an incorrect value after 
> the CSVParser has encountered a comment in the CSV file.
> Example:
>  
> {code:java}
> String csv = "# Comment\n"
>            + "Headers,Header2\n"
>            + "Value1,Value2\n";
> CSVFormat format = 
> CSVFormat.EXCEL.withCommentMarker('#').withFirstRecordAsHeader();
> CSVParser parser = new CSVParser(new StringReader(csv), format);
> long expectedPosition = csv.indexOf("Value1");
> long actualPosition = parser.iterator().next().getCharacterPosition();
> assertEquals(expectedPosition, actualPosition);{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to