Skip to content

Commit

Permalink
Fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Oct 30, 2024
1 parent 5efe0fd commit 58e93e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PasteIntoFile/ClipboardContents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58e93e5

Please sign in to comment.