Browse Source

* Fix bug #33803

git-svn-id: trunk@39146 -
michael 7 years ago
parent
commit
133e7e53f0
1 changed files with 1 additions and 1 deletions
  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;