소스 검색

* Fix bug #33803

git-svn-id: trunk@39146 -
michael 7 년 전
부모
커밋
133e7e53f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-xml/src/xmlwrite.pp

+ 1 - 1
packages/fcl-xml/src/xmlwrite.pp

@@ -288,7 +288,7 @@ begin
   Inc(FNesting);
   if FNesting >= Length(FNodes) then
     SetLength(FNodes, FNesting+8);
-  if Length(FIndent) < 2 * FNesting then
+  if (Length(FIndent)-Length(FLineBreak)) < 2 * FNesting then
   begin
     OldLen := Length(FIndent);
     NewLen := 4 * FNesting;