You've already forked lazarus-ccr
* 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:
@ -312,7 +312,7 @@ begin
|
|||||||
ACurrencySymbol := '';
|
ACurrencySymbol := '';
|
||||||
end;
|
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;
|
function TsCSVReader.IsQuotedText(var AText: String): Boolean;
|
||||||
begin
|
begin
|
||||||
if (Length(AText) > 1) and (CSVParams.QuoteChar <> #0) and
|
if (Length(AText) > 1) and (CSVParams.QuoteChar <> #0) and
|
||||||
@ -579,8 +579,7 @@ begin
|
|||||||
if ACell = nil then
|
if ACell = nil then
|
||||||
exit;
|
exit;
|
||||||
s := ACell^.UTF8StringValue;
|
s := ACell^.UTF8StringValue;
|
||||||
if CSVParams.QuoteChar <> #0 then
|
// No need to quote; csvdocument will do that for us...
|
||||||
s := CSVParams.QuoteChar + s + CSVParams.QuoteChar;
|
|
||||||
FCSVBuilder.AppendCell(s);
|
FCSVBuilder.AppendCell(s);
|
||||||
// AppendToStream(AStream, s);
|
// AppendToStream(AStream, s);
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user