cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34451] New: - CSVGenerator not coping with files with no new line char at end?
Date Thu, 14 Apr 2005 13:55:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34451>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34451

           Summary: CSVGenerator not coping with files with no new line char
                    at end?
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P4
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: ross_mcdonald@vnu.co.uk


by adding dumpField(); before dumpRecord() outside the while loop in the
'generate' method, we process the last field of the line whether there are one
or more blank lines at the end of the file or not.

Hopefully then we are not so dependent on strict data coming in...

diff is below:

diff CSVGenerator.java
~/workspace/core/sources/local/org/apache/cocoon/generation/CSVGenerator.java
251a252
>             this.dumpField();


hope it helps

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message