You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the final value on the final line of a file without a trailing newline is escaped (wrapped in quotes), it's dropped from the output and an empty string is returned instead. For example:
Budget
$2500.00
will output %{"Budget" => "$2500.00"}, but
Budget
"$2500.00"
will output %{"Budget" => ""}.
Note that this only occurs when the trailing newline is omitted from the file, regardless of line endings (LF or CRLF both exhibit this behaviour). If the trailing newline is present, this behaviour does not occur.
I would expect "$2500.00" to be returned for Budget in both cases above, regardless of whether it's wrapped in escape characters or not.
It seems this may be related to #112. If it's much effort to fix, just adding a note in the changelog/readme that a trailing newline is required would be helpful.
When the final value on the final line of a file without a trailing newline is escaped (wrapped in quotes), it's dropped from the output and an empty string is returned instead. For example:
will output
%{"Budget" => "$2500.00"}
, butwill output
%{"Budget" => ""}
.Note that this only occurs when the trailing newline is omitted from the file, regardless of line endings (LF or CRLF both exhibit this behaviour). If the trailing newline is present, this behaviour does not occur.
I would expect
"$2500.00"
to be returned forBudget
in both cases above, regardless of whether it's wrapped in escape characters or not.Steps to Reproduce
CSV Files
with-quotes.csv
without-quotes.csv
The text was updated successfully, but these errors were encountered: