Browse Source

* xmlread.pp, a misplaced assignment could cause a #13 character to pass non-normalized to #10 if it was the last character in input stream.

git-svn-id: trunk@15974 -
sergei 15 years ago
parent
commit
06c1413fb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-xml/src/xmlread.pp

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

@@ -896,8 +896,8 @@ begin
           Inc(FBuf);
           Inc(FBuf);
           Inc(LFPos);
           Inc(LFPos);
         end;
         end;
-        FBuf^ := #10;
       end;
       end;
+      FBuf^ := #10;
     end;
     end;
     #$85, #$2028: if FXML11Rules then
     #$85, #$2028: if FXML11Rules then
     begin
     begin