* fpspreadsheet: csv writer: get rid of multiple quoting (let csvdocument handle quoting)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3686 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
bigchimp
2014-10-24 13:21:34 +00:00
parent c1102886cc
commit 391cd0a647

View File

@ -312,7 +312,7 @@ begin
ACurrencySymbol := '';
end;
{ Checks if text is quoted; strips starting and ending quotes }
{ Checks if text is quoted; strips any starting and ending quotes }
function TsCSVReader.IsQuotedText(var AText: String): Boolean;
begin
if (Length(AText) > 1) and (CSVParams.QuoteChar <> #0) and
@ -579,8 +579,7 @@ begin
if ACell = nil then
exit;
s := ACell^.UTF8StringValue;
if CSVParams.QuoteChar <> #0 then
s := CSVParams.QuoteChar + s + CSVParams.QuoteChar;
// No need to quote; csvdocument will do that for us...
FCSVBuilder.AppendCell(s);
// AppendToStream(AStream, s);
end;