AccelerationNet/cl-csv — Issue #4: Unexpected :waiting-for-next state
Author: felideon
Created: 2012-01-27 04:12:30+00:00
State: open

Getting the following error in a CSV file I'm trying to parse:

```
CAUSE-ERROR: value :WAITING-FOR-NEXT is not of the expected type
(MEMBER :WAITING :COLLECTING-QUOTED :COLLECTING).
```

Here is a test that reproduces the issue: https://github.com/felideon/cl-csv/commit/bceb8e4234f914b96a53ee4962cbfd8dc15f360b

One fix I tried which gets rid of the error but I'm not sure does the right thing when writing out the CSV, is adding :waiting-for-next on line 248:

```lisp
((:waiting :waiting-for-next) (setf state :collecting-quoted))
```

What would be the appropriate fix for this issue, and why do the current tests not cause it such as the data-with-newlines test?

Thanks\.