From 58e93e56e3fb64707c130719f6d76457ce6a0665 Mon Sep 17 00:00:00 2001 From: eltos Date: Wed, 30 Oct 2024 17:29:42 +0100 Subject: [PATCH] Fix #58 --- PasteIntoFile/ClipboardContents.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PasteIntoFile/ClipboardContents.cs b/PasteIntoFile/ClipboardContents.cs index 5723005..37989d7 100644 --- a/PasteIntoFile/ClipboardContents.cs +++ b/PasteIntoFile/ClipboardContents.cs @@ -274,8 +274,8 @@ public override void SaveAs(string path, string extension, bool append = false) } protected static void Save(string path, string text, bool append = false) { - using (StreamWriter streamWriter = new StreamWriter(path, append)) - streamWriter.Write(EnsureNewline(text), Encoding); + using (StreamWriter streamWriter = new StreamWriter(path, append, Encoding)) + streamWriter.Write(EnsureNewline(text)); } public static string EnsureNewline(string text) {