Skip to content

Commit

Permalink
try forcing /r/n
Browse files Browse the repository at this point in the history
  • Loading branch information
sargeantPig committed Oct 20, 2023
1 parent fbcb215 commit 6e8babe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RTWLibPlus/helpers/format.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static string GetStringOf<T>(T character, int length)
public static string UniversalNewLine(){
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) == true)
return "\r\n";
else return Environment.NewLine;
else return "\r\n"; // environment.newline
}

}
Expand Down
2 changes: 1 addition & 1 deletion RTWLibPlus/parsers/DepthParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public List<IbaseObj> Parse(string[] lines, ObjectCreator creator, char splitter
{
string lineTrimEnd = line.TrimEnd();

if ((lineTrimEnd == string.Empty || line == Environment.NewLine) && !line.StartsWith(";"))
if ((lineTrimEnd == string.Empty || line == Format.UniversalNewLine()) && !line.StartsWith(";"))
{
whiteSpaceSeparator++;
continue;
Expand Down

0 comments on commit 6e8babe

Please sign in to comment.