mirror of
https://github.com/FourierTransformer/ftcsv.git
synced 2024-12-16 05:24:21 +00:00
can now handle os 9 line endings
This commit is contained in:
parent
1a40dd1126
commit
2ad3fb7be9
@ -215,7 +215,7 @@ local function parseString(inputString, inputLength, delimiter, i, headerField,
|
|||||||
-- end
|
-- end
|
||||||
|
|
||||||
-- newline?!
|
-- newline?!
|
||||||
elseif ((currentChar == CR and nextChar == LF) or currentChar == LF) then
|
elseif (currentChar == CR or currentChar == LF) then
|
||||||
if fieldsToKeep == nil or fieldsToKeep[headerField[fieldNum]] then
|
if fieldsToKeep == nil or fieldsToKeep[headerField[fieldNum]] then
|
||||||
-- create the new field
|
-- create the new field
|
||||||
field = createField(inputString, quote, fieldStart, i, doubleQuoteEscape)
|
field = createField(inputString, quote, fieldStart, i, doubleQuoteEscape)
|
||||||
|
Loading…
Reference in New Issue
Block a user