42BV / CSVeed

Light-weight, easy-to-use Java-based CSV utility
Apache License 2.0
100 stars 22 forks source link

Not using CRLF as line separator for writing as per specification? #57

Closed mparaz closed 8 years ago

mparaz commented 9 years ago

In RowWriterImpl: writer.write(rowInstructions.getEndOfLine());

which is: return this.symbolMapping.getFirstMappedCharacter(EncounteredSymbol.EOL_SYMBOL);

which is only ever one character, the \r of the \r\n: char[] mappedCharacters = symbolToChars.get(encounteredSymbol); return mappedCharacters == null ? 0 : mappedCharacters[0];

As a workaround, I passed in a Writer that overrides write(int)

manish-in-java commented 8 years ago

:+1:

SanderBenschop commented 8 years ago

This should be fixed in the latest version