AbstractCsvWriter.escapeString() does not increment the line count correctly for embedded newlines. Currently, it only increments the line count for
\n. This needs to be updated to cater for
\r\n as well (just like
It also replaces line terminators with the end of line symbols in the preferences (someone might disagree, but I think that's not a bad idea), so it should do the same for the other line terminators as well.