iamantony / qtcsv

Library for reading and writing csv-files in Qt.
MIT License
266 stars 144 forks source link

Reader: Line breaks lost #41

Closed roundcubes closed 7 years ago

roundcubes commented 7 years ago

Hello,

we noticed that when the CSV is read, the line breaks that have been lost are lost. These do not seem to be imported.

iamantony commented 7 years ago

Hi!

Could you provide an example? I did not quite understand what you mean...

roundcubes commented 7 years ago

Hello, I have tested a bit and found the following. If there are only returns in a text, \r, they are not imported.

Example:

Column1, Column2; Column3 "Hello with\rHello again"; "Hello Col 3"

If i replace all \r with \n or \r\n, it works.

If i look the exported file with Numbers or Excel, it seems with only \r correct.

iamantony commented 7 years ago

Hi @roundcubes ! Please test qtcsv from dev branch with your files. I hope the latest commits fixed the issue.

roundcubes commented 7 years ago

Hello,

Excuse the long absence. The solution works. Many Thanks