mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
* Fix formatted indent size
git-svn-id: trunk@31272 -
This commit is contained in:
parent
a797c2fc46
commit
3b9edc840f
@ -149,6 +149,7 @@ procedure TJSONConfig.Flush;
|
|||||||
|
|
||||||
Var
|
Var
|
||||||
F : Text;
|
F : Text;
|
||||||
|
S : TJSONStringType;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if Modified then
|
if Modified then
|
||||||
@ -157,9 +158,10 @@ begin
|
|||||||
Rewrite(F);
|
Rewrite(F);
|
||||||
Try
|
Try
|
||||||
if Formatted then
|
if Formatted then
|
||||||
Writeln(F,FJSON.FormatJSON(Formatoptions,DefaultIndentSize))
|
S:=FJSON.FormatJSON(Formatoptions,FormatIndentSize)
|
||||||
else
|
else
|
||||||
Writeln(F,FJSON.AsJSON);
|
S:=FJSON.AsJSON;
|
||||||
|
Writeln(F,S);
|
||||||
Finally
|
Finally
|
||||||
CloseFile(F);
|
CloseFile(F);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user