trim ending '\r' if we miss it for some reason

This commit is contained in:
Michael Becker 2020-08-31 20:19:27 -04:00
parent 94d92d6d8c
commit d185b83fa8
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -1706,6 +1706,8 @@ namespace UniversalEditor.IO
{
string line = ReadUntil(GetNewLineSequence());
ReadBytes(GetNewLineSequence().Length);
if (line.EndsWith("\r"))
line = line.Substring(0, line.Length - 1);
return line;
}