浏览代码

fcl-json: clean up

mattias 1 月之前
父节点
当前提交
5bf63265aa
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;