PHPCsvParser icon indicating copy to clipboard operation
PHPCsvParser copied to clipboard

Multiline string without text in new line

Open xelan opened this issue 9 years ago • 0 comments

Hi!

If I try to process a multiline string which doesn't have text after the line break, the strings content gets lost instead of being parsed correctly.

CSV example

"Column 1"|"Column 2
"|"Column 3"

Expected output

 array(
  0 => array(
    0 => 'Column 1',
    1 => 'Column 2
',
    2 => 'Column 3'
  )

Actual output

array(
  0 => array(
    0 => 'Column 1',
    1 => '',
    2 => 'Column 3'
  )
)

Thank you very much!

xelan avatar Jun 05 '15 06:06 xelan