Browse Source

fcl-json: clean up

mattias 2 weeks ago
parent
commit
5bf63265aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-json/src/fpjson.pp

+ 2 - 2
packages/fcl-json/src/fpjson.pp

@@ -1740,6 +1740,7 @@ end;
 procedure TJSONData.DoFormatJSON(var Ctx: TFormatJSONContext; CurrentIndent : SizeInt);
 
 begin
+  if CurrentIndent=0 then ;
   Ctx.Append(AsJSON);
 end;
 
@@ -2252,10 +2253,9 @@ begin
     Ctx.Append(TJSONStringType(FloatToStr(FValue,JSONFormatSettings)))
   else
     Ctx.Append(AsJSON);
+  if CurrentIndent=0 then ;
 end;
 
-
-
 constructor TJSONFloatNumber.Create(AValue: TJSONFloat);
 begin
   FValue:=AValue;