View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18318 | Bug reports | Import/Export | public | 2022-08-18 12:32 | 2023-06-20 17:49 |
Reporter | Jmantysalo | Assigned To | ollehar | ||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | reopened | ||
Product Version | 5.3.x | ||||
Summary | 18318: Empty line at the end of csv export | ||||
Description | CSV-export of responses contains an empty line at the end. (And yes, I noticed this when trying an automatic processing of the file.) .lsa attached for testing. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 18 | ||||
Complete LimeSurvey version number (& build) | 5.3.32+220817 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | N/A | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | N/A | ||||
That empty line at end of line seems was addes on purpose by @c_schmitz here to enhance excel compatibility I believe it is better to not remove them. Thanks |
|
Not exactly true. I did not add that line. |
|
Oops, my bad... I was saying that following the commit message :) Who can test with R? |
|
@f_funke ? |
|
I see that empty line in the data file. But when importing the data in R this has no effect. The empty lines doe not result in a separate (empty) cases. However, removing the empty line makes no difference for the import in R. To be honest, I don't understand the problem of the empty line. The empty line inflates the file size by 4 bytes - bytes, not kB or mB ;-) Could @Jmantysalo please add more information about the relevance? |
|
I noticed this when doing some automatic prosessing (can't remember what exactly). I wrote a small code assuming that every line of the file contains a response. Of course I can start my script with 'egrep .' or 'tac | tail -n +2 | tac' now when I know this. Hence I reported this, but put "trivial" as severity. No hard feelings if this will be closed without fix. |
|
The empty line might was added to have an separator when importing multiple CSV into one data table. |
|
OK, then we can remove that line. |
|
A lot of import system broke with empty line. For example : export with EM code : you get a file near a VV file. |
|
Is this as expected? |
|
@Jmantysalo can you confirm the picture above is as expected? Thanks! |
|
I think so. The editor probably shows line number 4, even when line 4 has no content. |
|
@Jmantysalo Can you test with R? |
|
Tested and yes, it worked. (I.e. after source("survey_123456_R_syntax_file.R") everything seems fine with str(data) -command.) |
|
Tested by @Jmantysalo |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34381 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-08-18 12:32 | Jmantysalo | New Issue | |
2022-08-18 12:32 | Jmantysalo | File Added: survey_archive_923716.lsa | |
2022-08-22 11:55 | ollehar | Priority | none => normal |
2023-01-19 13:52 | gabrieljenik | Status | new => acknowledged |
2023-01-24 20:30 | gabrieljenik | Assigned To | => gabrieljenik |
2023-01-24 20:30 | gabrieljenik | Status | acknowledged => assigned |
2023-01-30 12:50 | gabrieljenik | Assigned To | gabrieljenik => |
2023-01-30 12:50 | gabrieljenik | Status | assigned => closed |
2023-01-30 12:50 | gabrieljenik | Resolution | open => no change required |
2023-01-30 12:50 | gabrieljenik | Note Added: 73599 | |
2023-01-30 12:50 | gabrieljenik | Bug heat | 0 => 2 |
2023-01-30 12:59 | c_schmitz | Note Added: 73600 | |
2023-01-30 12:59 | c_schmitz | Bug heat | 2 => 4 |
2023-01-30 13:00 | c_schmitz | Assigned To | => c_schmitz |
2023-01-30 13:00 | c_schmitz | Status | closed => feedback |
2023-01-30 13:00 | c_schmitz | Resolution | no change required => reopened |
2023-01-30 13:04 | gabrieljenik | Note Added: 73601 | |
2023-02-06 20:38 | c_schmitz | Note Added: 73711 | |
2023-02-09 13:38 | c_schmitz | Assigned To | c_schmitz => f_funke |
2023-02-09 13:38 | c_schmitz | Issue Monitored: c_schmitz | |
2023-02-09 13:38 | c_schmitz | Bug heat | 4 => 6 |
2023-02-09 15:17 | f_funke | Note Added: 73781 | |
2023-02-09 15:17 | f_funke | Bug heat | 6 => 8 |
2023-02-09 15:50 | f_funke | Issue Monitored: f_funke | |
2023-02-09 15:50 | f_funke | Bug heat | 8 => 10 |
2023-02-09 21:54 | Jmantysalo | Note Added: 73784 | |
2023-02-09 21:54 | Jmantysalo | Bug heat | 10 => 12 |
2023-02-09 21:54 | Jmantysalo | Status | feedback => assigned |
2023-02-20 13:26 | jelo | Note Added: 73884 | |
2023-02-20 13:26 | jelo | Bug heat | 12 => 14 |
2023-02-20 17:23 | c_schmitz | Note Added: 73889 | |
2023-02-24 18:49 | gabrieljenik | Assigned To | f_funke => DenisChenu |
2023-02-24 18:49 | gabrieljenik | Status | assigned => ready for code review |
2023-02-24 18:49 | gabrieljenik | Note Added: 73951 | |
2023-02-25 17:32 | DenisChenu | Note Added: 73952 | |
2023-02-25 17:32 | DenisChenu | Bug heat | 14 => 16 |
2023-02-25 17:32 | DenisChenu | Assigned To | DenisChenu => |
2023-02-25 17:32 | DenisChenu | Status | ready for code review => ready for testing |
2023-03-01 14:20 | gabrieljenik | Note Added: 73998 | |
2023-03-01 14:20 | gabrieljenik | File Added: image.png | |
2023-03-09 15:34 | gabrieljenik | Note Added: 74076 | |
2023-03-10 13:17 | Jmantysalo | Note Added: 74084 | |
2023-03-10 19:12 | gabrieljenik | Note Added: 74092 | |
2023-03-13 09:00 | Jmantysalo | Note Added: 74093 | |
2023-03-13 15:01 | gabrieljenik | Assigned To | => ollehar |
2023-03-13 15:01 | gabrieljenik | Status | ready for testing => ready for merge |
2023-03-13 15:01 | gabrieljenik | Note Added: 74100 | |
2023-03-20 12:38 | Changeset attached | => LimeSurvey master caad58d5 | |
2023-03-20 12:38 | guest | Note Added: 74210 | |
2023-03-20 12:38 | guest | Bug heat | 16 => 18 |
2023-03-20 12:58 | ollehar | Status | ready for merge => resolved |
2023-06-20 17:49 | c_schmitz | Status | resolved => closed |