-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
Description
The FSharpAux.IO.SeqIO.Seq.CSV function with the parameter flatten = false, does not perform as intended.
Repro steps
- Define a Record type with a field of type array.
- FSharpAux.IO.SeqIO.Seq.CSV function with the parameter flatten = false, using an instance of your type with an array of Length > 20.
- Look at the string.
Expected behavior
Nicely formatted output.
Actual behavior
The array is spread accross mutliple lines if it exceeds a certain length. This happens because "sprintf "%A" x" is used to format collections. This introduces line-brakes into the string.
Known workarounds
FSharpAux.IO.SeqIO.Seq.CSV calls FSharpAux.IO.SeqIO.Seq.CSVwith. Simply replace the parameter strFunction with a version that does the formatting correctly.