Explorar o código

fcl-json: clean up

mattias hai 2 semanas
pai
achega
5bf63265aa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;