Fixed CRLF issue during parsing FDF file
[people/mcb30/basetools.git] / Source / Python / GenFds / FdfParser.py
index e82a887..96f73c8 100644 (file)
@@ -256,7 +256,7 @@ class FdfParser:
     #\r
     def __EndOfLine(self):\r
         SizeOfCurrentLine = len(self.Profile.FileLinesList[self.CurrentLineNumber - 1])\r
-        if self.CurrentOffsetWithinLine >= SizeOfCurrentLine - 1:\r
+        if self.CurrentOffsetWithinLine >= SizeOfCurrentLine:\r
             return True\r
         else:\r
             return False\r