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

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

                Author: ASF GitHub Bot
            Created on: 14/Jul/21 21:39
            Start Date: 14/Jul/21 21:39
    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/41376277/badge)](https://coveralls.io/builds/41376277)
   
   Coverage increased (+0.01%) to 98.32% when pulling 
**87ac79fef0ba6cd33baad4bad83d05108efe222d on king-tyler:CSV-265** into 
**a2ba9b52886162d7f046ff7fe8019c1ba5334a9a 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: 622744)
    Time Spent: 1h 20m  (was: 1h 10m)

> 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: 1h 20m
>  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