Bug 117196 - CSV import not happening correctly
Summary: CSV import not happening correctly
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 02:08 UTC by kalm77
Modified: 2018-04-25 00:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Text file containing Text comma tab carriage return and number (5.92 KB, text/plain)
2018-04-24 15:23 UTC, kalm77
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kalm77 2018-04-24 02:08:03 UTC
Description:
My version:
Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial2
CPU Threads: 2; OS Version: Linux 4.4; UI Render: default; 
Locale: en-US (en_US.UTF-8); Calc: group

I have the following CSV plain text file, a few lines from which are:

"
Agilent Technologies,
114.49
 
AbbVie,
28.15
 
AmerisourceBergen,
20.38
 
Abbott Laboratories,
236.76"

There are spaces, tabs, newlines, and COMMAS between the text (company names) and the numbers (P/E ratios).  

I want to open it in calc with ONLY the comma as delimiter. I open the file in Calc, and select delimiter as ONLY the comma.  Calc doesn't split the two fields into separate columns (as it should) instead it puts them in separate rows!

Steps to Reproduce:
in description above

Actual Results:  
Agilent Technologies
114.49
 
AbbVie
28.15
 
AmerisourceBergen
20.38
 
Abbott Laboratories
236.76


Expected Results:
Agilent Technologies|114.49 (in separate column) and SO FORTH


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.84 Chrome/63.0.3239.84 Safari/537.36
Comment 1 raal 2018-04-24 05:00:16 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 2 kalm77 2018-04-24 15:23:30 UTC
Created attachment 141600 [details]
Text file containing Text comma tab carriage return and number

Hello, 
Thank you for your response.  I've attached the Text file.
Comment 3 m_a_riosv 2018-04-24 21:33:57 UTC
I think that file have not a basic csv format, every new line represent a record, and it's no way with the import to solve such matter.

There are a lot of results on the web searching for remove new lines in a csv file, searching for 'csv remove new lines'.

In my opinion not a bug.

Please if you are not agree, reopen it.
Comment 4 kalm77 2018-04-25 00:42:27 UTC
Thank you. done.