trim ending '\r' if we miss it for some reason
This commit is contained in:
parent
94d92d6d8c
commit
d185b83fa8
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user