summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-08 00:22:27 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-08 00:22:27 -0500
commit6092f9ea00f63980231a646696671ae9db3fa958 (patch)
tree7d716bc845c1a997b28ce2063070b4efea9a7b43 /src/StardewModdingAPI/Framework
parentd52b3572f3d80c232c80de44adc93cc6cb015812 (diff)
downloadSMAPI-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.cs4
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>