diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-08 00:22:27 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-08 00:22:27 -0500 |
commit | 6092f9ea00f63980231a646696671ae9db3fa958 (patch) | |
tree | 7d716bc845c1a997b28ce2063070b4efea9a7b43 /src/StardewModdingAPI/Framework | |
parent | d52b3572f3d80c232c80de44adc93cc6cb015812 (diff) | |
download | SMAPI-6092f9ea00f63980231a646696671ae9db3fa958.tar.gz SMAPI-6092f9ea00f63980231a646696671ae9db3fa958.tar.bz2 SMAPI-6092f9ea00f63980231a646696671ae9db3fa958.zip |
always use \r\n line endings in log file for crossplatform compatibility (#230)
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-rw-r--r-- | src/StardewModdingAPI/Framework/LogFileManager.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/LogFileManager.cs b/src/StardewModdingAPI/Framework/LogFileManager.cs index c2a2105b..80437e9c 100644 --- a/src/StardewModdingAPI/Framework/LogFileManager.cs +++ b/src/StardewModdingAPI/Framework/LogFileManager.cs @@ -34,7 +34,9 @@ namespace StardewModdingAPI.Framework /// <param name="message">The message to log.</param> public void WriteLine(string message) { - this.Stream.WriteLine(message); + // always use Windows-style line endings for convenience + // (Linux/Mac editors are fine with them, Windows editors often require them) + this.Stream.Write(message + "\r\n"); } /// <summary>Release all resources.</summary> |