diff options
Diffstat (limited to 'src/StardewModdingAPI/Framework/LogFileManager.cs')
-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> |